tmp_site: Custom site generator to render in in a temporary directory

Description Usage Arguments Details See Also Examples

View source: R/tmp_site.R

Description

To render your R Markdown documents in a temporary directory, run render_rmd_in_tmp in the directory that contains the R Markdown files. Afterwards, using the RStudio Knit button will automatically use this custom site generator. If you receive an error from RStudio, make sure the Knit Directory is set to Document Directory (you can set this with the dropdown menu next to the Knit button).

Usage

1
tmp_site(input, encoding = getOption("encoding"), ...)

Arguments

input

Website directory (or the name of a file within the directory)

encoding

The encoding of the input file; see file.

...

Additional arguments (currently unused)

Details

If you render the file from the R console, use render_site. If you specify the output_format, it is preferred to pass a character vector, e.g. "html_document", instead of the object itself, e.g. html_document().

See Also

render_rmd_in_tmp, render_site

Examples

1
2
3
4
5
6
7
8
## Not run: 

library("rmarkdown")
render_site("example.Rmd", "html_document")
render_site("example.Rmd", "pdf_document")
render_site("example.Rmd", "word_document")

## End(Not run)

jdblischak/tmpsite documentation built on Feb. 15, 2018, 1:02 p.m.