Make Sweave + RweaveHTML put all graphics in a specified folder
问题 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