Description Usage Arguments Details Value Author(s) Examples
View source: R/package_functions.R
Gets a standard output directory path to be used for saving data and graphical objects based on the folder path of the R script the function is used in.
1 | get_output_dir(doc = F, file = NULL, inFolder = NULL)
|
doc |
Boolean (T, F) indicator of whether to set the output directory to the "Output" folder (used for R scripts calling the function) or the "Documentation" folder (used for Rmd scripts calling the function). |
The output directory will be selected to mimic the structure of the Codes folder (created at the set up of the project) and any subfolders created afterwords. If the R script exists in "Users/alexhubbard/Project/Codes/Model1" then the output directory will be "Users/alexhubbard/Project/Output/Model1". If an script is insted an Rmd file, the output directory will change to "Users/alexhubbard/Project/Documentation/Model1".
A character string giving a full folder path for the desired output directory.
Alex Hubbard (hubbard.alex@gmail.com)
1 2 3 | link_file()
get_output_dir()
get_output_dir(doc = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.