简体   繁体   中英

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?

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
    @

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM