chunk option in script for spin()

78 views
Skip to first unread message

alobo...@gmail.com

unread,
Nov 27, 2013, 9:44:46 AM11/27/13
to kn...@googlegroups.com
I'm using a function that always issues a message and, as I call it within a loop,
all these messages are very annoying if the script is processed with spin().
I've tried to turn off these messages by setting:
#+ test, results='hide'

i.e
#' # TEST
#+ test, results='hide'
require(lmodel2)
for (i in 1:3){
  delme <- lmodel2(runif(10)~rnorm(10))
}

but I stil  get the messages printed in the html output.

Is there a way of not actually getting the messages written to the ouptut of spin()?

Thanks

Agus

Jeff Newmiller

unread,
Nov 27, 2013, 10:41:17 AM11/27/13
to alobo...@gmail.com, kn...@googlegroups.com

messages=FALSE

--
You received this message because you are subscribed to the Google Groups "knitr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knitr+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

alobo...@gmail.com

unread,
Nov 28, 2013, 4:23:09 AM11/28/13
to kn...@googlegroups.com, alobo...@gmail.com
Unfortunately not...
Script
#' # TEST
#+ test, messages=FALSE

require(lmodel2)
for (i in 1:3){
  delme <- lmodel2(runif(10)~rnorm(10))
}

Yihui Xie

unread,
Nov 28, 2013, 12:27:41 PM11/28/13
to alobo...@gmail.com, knitr
I think Jeff meant message=FALSE instead of messages=FALSE.

Regards,
Yihui
--
Yihui Xie <xiey...@gmail.com>
Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA

alobo...@gmail.com

unread,
Nov 29, 2013, 3:34:04 AM11/29/13
to kn...@googlegroups.com, alobo...@gmail.com
Yes, it does work without the extra "s"
Thanks
Reply all
Reply to author
Forward
0 new messages