KnitR / RMD: select output folder

I am using the RMD file to create a vignette. My. The rmd file is stored in

 .../path_to_package/vignettes/vignette.rmd

When creating a PDF, the last line in the R Markdown console window is "Output created: / tmp / ....".

How to create a PDF file directly in the vignette folder, and not in the / tmp / .. folder?

I am using Ubuntu 14.04 LTS and R 3.3.0, rmarkdown 0.9.6 and knitr 1.13.

Hi,

Johannes

+4
source share
2 answers

rmarkdown::renderreally outputs to the same directory as the input folder by default, but you can override this by providing it with argument output_dir(s output_file) if you want to specify a different filename for the input file too).

, Knit RStudio - - , ( , ), RStudio , , , . rmarkdown::render() .

+1

devtools::build_vignettes()

, . Hadley Wickham . !

-1

All Articles