build_new_model_path: Private helper to build absolute path for...

View source: R/copy-model-from.R

build_new_model_pathR Documentation

Private helper to build absolute path for copy_model_from(). Importantly, if the input .new_model is not absolute, it will be treated as relative to the working directory of .parent_mod.

Description

Private helper to build absolute path for copy_model_from(). Importantly, if the input .new_model is not absolute, it will be treated as relative to the working directory of .parent_mod.

Usage

build_new_model_path(.parent_mod, .new_model)

Arguments

.parent_mod

Model to copy from

.new_model

Path to the new model, either absolute or relative to the path to .parent_mod. Represents an absolute model path, which is the path to the YAML file and model file, both without extension, and the output directory (once the model is run). Numeric values will be coerced to character. If NULL, the default, will try to increment to the next integer in the destination directory. See examples for usage.

Value

absolute file path to save new model to (without file extension)


metrumresearchgroup/rbabylon documentation built on April 21, 2024, 3:26 a.m.