Description Usage Arguments Details Value Examples
Containerize R Markdown documents. This function generates
Dockerfile
based on the liftr metadata in the RMD document.
1 2 |
input |
Input (R Markdown) file. |
use_config |
If |
config_file |
Name of the YAML configuration file, under the
same directory as the input file. Default is |
output_dir |
Directory to output |
After running lift, run render_docker on the document to
render the containerized R Markdown document using Docker containers.
See vignette('liftr-intro')
for details about the extended
YAML front-matter metadata format used by liftr.
Dockerfile
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # copy example file
dir_example = paste0(tempdir(), '/liftr-minimal/')
dir.create(dir_example)
file.copy(system.file("examples/liftr-minimal.Rmd", package = "liftr"), dir_example)
# containerization
input = paste0(dir_example, "liftr-minimal.Rmd")
lift(input)
## Not run:
# render the document with Docker
render_docker(input)
# view rendered document
browseURL(paste0(dir_example, "liftr-minimal.html"))
# purge the generated Docker image
purge_image(paste0(dir_example, "liftr-minimal.docker.yml"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.