Search code examples
rknitrsweave

Remove message from Zelig package loading when swearing/kniting


I'm using sweave and my r chunk uses the package Zelig, which produces a message every time it loads. I've tried everything from message=FALSE, warnings=F, comment=F, as well as suppressMessages(library(Zelig)). Nothing works! any ideas?


Solution

  • Ok so my work around is to load the Zelig library in a separate chunk than the rest of my code and to use results=hide like in the following example:

        TEXT
        <<results=hide, echo=FALSE, cache=FALSE, warning=FALSE, comment=FALSE, warning=FALSE>>=
        library(Zelig) 
        @
        TEXT
        <<>>=
        CODE
        @