我们如何编程 statet 以同时使用 knitr 和 pdflatex
How can we program statet to use both knitr and pdflatex
在新版本的statet4.0中,我想找到一种方法将sweave配置为运行同时使用knitr和pdflatex。
在外部工具配置 > sweave 文档处理中有一个使用示例 tools::texi2dvi(file= "${resource_loc}", pdf= TRUE)
我应该如何配置才能使用 pdflatex?
Latex 文档
我已经将 R Weave 配置设置为生成一个 tex
(不是 .tex
just tex)
然后我用了
system2(command='pdflatex', args=c('-interaction=nonstopmode','-synctex=1','${resource_loc}')).
在这里,我尝试设置 stdin
和 stout
参数但没有成功,但是 windows 下可能存在问题,正如那里指出的那样:
https://github.com/rstudio/rstudio/issues/2446。最后将文件路径 ${resource.loc}
作为最后一个参数效果很好。
在新版本的statet4.0中,我想找到一种方法将sweave配置为运行同时使用knitr和pdflatex。
在外部工具配置 > sweave 文档处理中有一个使用示例 tools::texi2dvi(file= "${resource_loc}", pdf= TRUE)
我应该如何配置才能使用 pdflatex?
Latex 文档
我已经将 R Weave 配置设置为生成一个 tex
(不是 .tex
just tex)
system2(command='pdflatex', args=c('-interaction=nonstopmode','-synctex=1','${resource_loc}')).
在这里,我尝试设置 stdin
和 stout
参数但没有成功,但是 windows 下可能存在问题,正如那里指出的那样:
https://github.com/rstudio/rstudio/issues/2446。最后将文件路径 ${resource.loc}
作为最后一个参数效果很好。