Description Usage Arguments Details Value Examples
View source: R/get_file_path.R
This function constructs a full file path string for use in reading from or writing to the file system. It is always using a base path by default, and adds any additional relative path under it when one is passed to the function.
1 | get_file_path(relativePath = "")
|
relativePath |
Optional. A character string defining the relative path under the base path. See the Details section for more on the base path. |
The base path defaults to the user directory (~
), and can be defined with an environment variable JT_LOCAL_PATH
.
A character string with the full expanded path (using path.expand.
1 2 3 4 5 | get_file_path('my/storage/path')
get_file_path('my/storage/path/for/this_file.csv')
Sys.setenv(JT_LOCAL_PATH = '~/my/custom/storage/path')
get_file_path('for/this_file.csv')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.