Description Usage Arguments Value Author(s) Examples
View source: R/package_functions.R
Returns the relative file path to the file to the root directory. It searches in the package environment variable cabinet for the path.
1 2 | get_file_path(file, inFolder = NULL, recall = T, allowMult = F,
full = 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. |
full |
A boolean (T, F) indicator specifying whether to return a relative or full file path. Default is F. |
A character string giving the file path of the specified file to the root directory.
Alex Hubbard (hubbard.alex@gmail.com)
1 2 | get_file_path("Model1.R")
get_file_path("Model.R", inFolder = "Codes")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.