Description Usage Arguments Value Author(s) Examples
View source: R/package_functions.R
Returns the full folder path to the file. It searches in the package environment variable cabinet for the path.
1 | get_file_folder(file, inFolder = NULL, recall = T, allowMult = F)
|
file |
A character string giving the name of the file to get the full folder path for (i.e. "main.R"). |
inFolder |
An identifer to narrow the search in case there are multiple files with same name but in different folders (i.e. "Codes/Model1"). |
recall |
A boolean (T, F) indicator specifying whether to rebuild the cabinet if the file was not found the first time. The default is T. |
allowMult |
A boolean (T, F) indicator specifying whether to allow multiple file paths upon return. The default is F. |
A character string giving the full folder path to the specified file.
Alex Hubbard (hubbard.alex@gmail.com)
1 2 | get_folder_path("Model1.R")
get_folder_path("Model.R", inFolder = "Codes")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.