rasmusab / bayesian_first_aid

Inside every classical test there is a Bayesian model trying to get out.
326 stars 40 forks source link

Any way to turn off the output from activating the library? #8

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi,

First, thanks so much for producing this library, it's great.

I'm using the code and producing an html file via Knitr in RStudio. When I activate the library, using: library(BayesianFirstAid, warn.conflicts=FALSE, verbose=FALSE, quietly = TRUE) I get the following output in my html file:

Linked to JAGS 3.4.0

Loaded modules: basemod,bugs

I'm not very familiar with html, I'm sure I could edit that out, but it would be nice to just get it to load silently.

Thanks for any help you can provide.

Steven

cheuerde commented 9 years ago

Hi,

that message comes from 'rjags'. You can surpress is like this:

suppressMessages(library(BayesianFirstAid))

taken from here: http://stackoverflow.com/questions/6279808/r-suppress-startupmessages-from-dependency

Best,

Claas

ghost commented 9 years ago

Hi, that worked, thank you!

Steven


@stevenvannoy stevenvannoy.wordpress.com

On Jul 22, 2015, at 12:52 PM, Claas Heuer notifications@github.com wrote:

Hi,

that message comes from 'rjags'. You can surpress is like this:

suppressMessages(library(BayesianFirstAid))

taken from here: http://stackoverflow.com/questions/6279808/r-suppress-startupmessages-from-dependency http://stackoverflow.com/questions/6279808/r-suppress-startupmessages-from-dependency Best,

Claas

— Reply to this email directly or view it on GitHub https://github.com/rasmusab/bayesian_first_aid/issues/8#issuecomment-123789527.

rasmusab commented 9 years ago

Thanks cheuerde fo the solution!