R - Markdown avoiding package loading messages

前端 未结 4 709
礼貌的吻别
礼貌的吻别 2020-12-02 04:40

I have been using Knitr via R-Studio, and think it is pretty neat. I have a minor issue though. When I source a file in an R-Chunk, the knitr output includes external commen

4条回答
  •  醉梦人生
    2020-12-02 04:58

    ```{r results='hide', message=FALSE, warning=FALSE}
    library(RJSONIO)
    library(AnotherPackage)
    ```
    

    see Chunk Options in the Knitr docs

提交回复
热议问题