Learn R Programming

rrtools (version 0.1.5)

use_dockerfile: Add a Dockerfile

Description

This will create a basic Dockerfile based on rocker/verse

Usage

use_dockerfile(pkg = ".", rocker = "verse", rmd_to_knit = "path_to_rmd")

Arguments

pkg

defaults to the package in the current working directory

rocker

chr, the rocker image to base this container on

rmd_to_knit,

chr, path to the Rmd file to render in the Docker container, relative to the top level of the compendium (i.e. "analysis/paper/paper.Rmd"). There's no need to specify this if your Rmd to render is at "analysis/paper/paper.Rmd", "vignettes/paper/paper.Rmd" or "inst/paper/paper.Rmd". If you have a custom directory structure, and a custom file name for the Rmd file, you can specify that file path and name here so Docker can find the file to render in the container.B