Silencing a package load message in Sweave

前端 未结 2 1201
栀梦
栀梦 2021-01-13 03:54

I\'m loading optmatch in a Sweave document as follows:

<>=
library(optmatch, quietly=TRUE)
@

You\'re loadi         


        
2条回答
  •  攒了一身酷
    2021-01-13 04:22

    Try loading the package in a hide results chunk:

    <>= 
    require(optmatch) 
    @
    

    If you use the knitr package, you need to quote hide:

    <>= 
    require(optmatch) 
    @
    

提交回复
热议问题