Make Sweave + RweaveHTML put all graphics in a specified folder

情到浓时终转凉″ 提交于 2019-12-05 00:18:20

问题


As a refinement of this question, does anyone know how to tell Sweave (or better the driver) to put all the graphics in a specific directory when using the RweaveHTML driver from the R2HTML package? I can't find any option for that :(


回答1:


Sweave responds to the prefix.string option for figures. E.g. in one recent document I use

\SweaveOpts{engine=R,eps=FALSE,echo=TRUE,prefix.string=figures/chart}

which leads to files figures/chart-chunkname.pdf where I use chunkname as the identifier in the Sweave code snippet. I suspect the same may help for R2HTML but I have not tried that driver.



来源:https://stackoverflow.com/questions/4678888/make-sweave-rweavehtml-put-all-graphics-in-a-specified-folder

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