Create a directory in _projr.yml
projr_dir_create.RdCreates a directory that is
listed in _projr.yml for the current projr profile.
Will add to .gitignore and .Rbuildignore
as well if required.
Arguments
- label
character. One of
"data_raw","cache","output","archive"and"docs". Class of directory to return. The"docs"option returns the path to the output directory frombookdown::render_book(as specified in"_bookdown.yml"), whereas the others returns paths as specified in"_projr.yml".- ...
Specifies sub-directory of directory returned. Passed to
file.path.- safe
logical. If
TRUE, then the output directory is set to be"<path_to_cache>/projr_output"instead of<path_to_output>(as specified in_projr.yml). The only time that this should be set toTRUEshould be whenprojr_build_outputis being run, as otherwise "development" or test runs will add to, delete or overwrite fabciles from the previous run ofprojr_build_output. Default isTRUE. Do not change this unless you know what you are doing.