stage | R Documentation |
Staging is a preliminary step of bringing code from external to the project
into the project. The intent is it remains a snapshot of code as it was at
the time of import
ing. This aids in reproducibility because if that
external code is changed, the staged code will remain fixed.
In practice, this function will rarely need to be used directly. The easiest way to bring code is via the "code library" RStudio 'Addin' shiny app.
stage( files, root_dir, overwrite = FALSE, silent = FALSE, find_replace_dir_names = TRUE )
files |
Character vector. path of files to stage. |
root_dir |
Character path to root directory of |
overwrite |
Logical (default = FALSE). |
silent |
Logical (default = FALSE). |
find_replace_dir_names |
Logical (default = TRUE). Will attempt to find
replace strings in scripts to reflect |
A tibble
with staged file information.
code_library()
, import()
## requires NMproject directory structure ## Not run: ls_code_library("Models/ADVAN2.mod") %>% stage() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.