Resolve a path using configured aliases
Usage
path_here(alias, ..., create = TRUE)
Arguments
- alias
Path alias ("project", "data", "artifacts", etc.)
- ...
Additional path components to append
- create
Whether to create the directory if it doesn't exist
Value
Resolved absolute path
Details
When create = TRUE, missing directories are created.
If the resolved path appears to be a file (e.g., has an extension),
only its parent directories are created so the file itself remains writable.
Examples
path_here("data", "input", "file.csv", create = FALSE)
#> [1] "/home/runner/work/parade/parade/docs/reference/data/input/file.csv"
path_here("artifacts", create = FALSE)
#> [1] "/tmp/RtmpfrGA9U/parade-artifacts"