Get projr
build cache directory
projr_path_get_cache_build.Rd
Get the cache directory for projr
builds.
It is a sub-directory of the cache directory.
For development builds (projr_build_dev
), this is the final
directory for output
and docs
items.
For output builds (projr_build_output
), this is the staging
directory. After the documents are rendered, they are copied
to their final directories.
projr_path_get_cache_build
assumes the path is to a file,
whereas projr_path_get_cache_build_dir
assumes the path
is to a directory.
This distinctiion is only relevant when create = TRUE
, as it
determines what directory is attempted to be created.
Usage
projr_path_get_cache_build_dir(..., create = FALSE, profile)
projr_path_get_cache_build(..., create = FALSE, profile)
Arguments
- ...
comma-separated strings specified initially the label (e.g.
"docs"
or"output"
) as well as, optionally, sub-directories (e.g."img", "
). For example,projr_path_get_cache_build("docs", "img")
returns the path to theimg
directory in thedocs
sub-directory of the build cache directory.- create
logical. If
TRUE
, then the directory is created if it does not exist.- profile
character. The name of the
projr
profile to use. Default isNULL
, which uses the currentprojr
profile.