Compile .Rnw file with command

一笑奈何 提交于 2019-12-12 03:19:10

问题


I have .Rnw file which generates me a report. In RStudio you compile it with button 'Compile PDF'.

But is there a way to compile this file with command in script and pass one character variable?

I tried to use function knit() but it only produces .tex file and I would like to obtain also pdf.

Thanks for your help in advance!


回答1:


The function knit2pdf in the knitr package does the trick ;)



来源:https://stackoverflow.com/questions/32115713/compile-rnw-file-with-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!