| use_rang {rang} | R Documentation |
Setup rang for a directory
Description
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 |
add_here |
logical, whether to insert a hidden |
verbose |
logical, whether to print out messages |
force |
logical, whether to overwrite files ( |
apptainer |
logical, whether to use apptainer. |
Details
The infrastructure being added to your path consists of:
-
inst/rangdirectory in the project root -
update.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.
Value
path, invisibly