This usethis-style function adds the infrastructure in a directory (presumably with R scripts
and data) for (re)constructing the computational environment.
Specifically, this function inserts inst/rang into the directory, which contains
all components for the reconstruction. Optionally, Makefile and .here are also inserted
to ease the development of analytic code.
By default, (re)running this function does not overwrite any file. One can change this by setting
force to TRUE.
Usage
use_rang(
path = ".",
add_makefile = TRUE,
add_here = TRUE,
verbose = TRUE,
force = FALSE,
apptainer = FALSE
)Arguments
- path
character, path to the project root
- add_makefile
logical, whether to insert a barebone
Makefilein the project root.- add_here
logical, whether to insert a hidden
.herefile in the project root- verbose
logical, whether to print out messages
- force
logical, whether to overwrite files (
inst/rang/update.R,Makefile,.here) if they exist.- apptainer
logical, whether to use apptainer.
FALSEindicates using Docker
Details
The infrastructure being added to your path consists of:
inst/rangdirectory in the project rootupdate.Rfile inside the directory.herein the project root (ifadd_hereis TRUE)Makefilein the project root (ifadd_makefileis TRUE) You might need to editupdate.Rmanually. The default is to scan the whole project for used R packages and assume they are either on CRAN or Bioconductor. If you have used other R packages, you might need to edit this manually.