View source: R/small_helpers.R
| libname | R Documentation |
Libname checks if a given path exists and writes a message in the console accordingly. Optional all files from the given path can be retrieved as a named character vector.
libname(path, get_files = FALSE)
path |
A folder path. |
get_files |
FALSE by default. If TRUE returns a named character vector containing file paths. |
Returns the given file path or a named character vector containing file paths.
my_path <- libname("C:/My_Path/")
file_list <- libname("C:/My_Path/", get_files = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.