cas_get_base_folder | R Documentation |
The path is computed based on inputs and settings; it may or may not exist.
cas_get_base_folder(
...,
level = c("base", "project", "website"),
custom_path = NULL
)
... |
Passed to |
level |
Defaults to "base". Valid values are "website", "project", and "base". |
custom_path |
Defaults to NULL. If given, all other parameters and settings are ignored, and this value is returned. |
Path to the folder well all project files are stored.
cas_set_options(
base_folder = fs::path(tempdir(), "R", "castarter_data"),
db_folder = fs::path(tempdir(), "R", "castarter_data"),
project = "example_project",
website = "example_website"
)
cas_get_base_folder()
cas_get_base_folder(level = "website")
cas_get_base_folder(level = "project")
cas_get_base_folder(level = "base")
cas_get_base_folder(custom_path = fs::path(tempdir(), "custom_path"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.