camr_path: Construct a Path Given Base Paths in Project Configuration...

View source: R/R10-Experimental.R

camr_pathR Documentation

Construct a Path Given Base Paths in Project Configuration File

Description

[Experimental]

Usage

camr_path(
  prefix = c("input", "output"),
  root = NULL,
  path = NULL,
  real = TRUE,
  create = FALSE
)

Arguments

prefix

'input' or 'output' corresponding to the prefix of the corresponding parameter in config.yml.

root

Optional. Name of the base path to lookup.

path

Optional. Path tail to concatenate at the end of the base path.

real

Optional. Whether to create a directory at the generated path. Cannot be used with real. Defaults to FALSE.

Details

Expects the project config.yml to contain a named list of base paths, ⁠(?<prefix>\w+)-root⁠, and a default base path name, ⁠(?<prefix>\w+)-root-default⁠.

Author(s)

Michael Pascale


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.