# NOT RUN {
# copy example file
dir_example = paste0(tempdir(), "/liftr-tidyverse/")
dir.create(dir_example)
file.copy(system.file("examples/liftr-tidyverse.Rmd", package = "liftr"), dir_example)
# containerization
input = paste0(dir_example, "liftr-tidyverse.Rmd")
lift(input)
# }
# NOT RUN {
# print the Docker commands first
render_docker(input, dry_run = TRUE)
# render the document with Docker
render_docker(input)
# view rendered document
browseURL(paste0(dir_example, "liftr-tidyverse.pdf"))
# remove the generated Docker image
prune_image(paste0(dir_example, "liftr-tidyverse.docker.yml"))
# }
Run the code above in your browser using DataLab