cas_get_options | R Documentation |
Get key project parameters that determine the folder used for storing project files
cas_get_options(
project = NULL,
website = NULL,
use_db = NULL,
base_folder = NULL,
db_type = NULL,
db_folder = NULL,
...
)
project |
Defaults to NULL. Project name, can be set once per session
with |
website |
Defaults to NULL. Website name, can be set once per session
with |
use_db |
Defaults to TRUE. If TRUE, stores information about the download process and extracted text in a local database. |
base_folder |
Defaults to NULL, can be set once per session with
|
db_folder |
Defaults to NULL. can be set once per session with
|
A list object with the given or previously set options.
Other settings:
cas_set_options()
# it is possible to set only a few options, and let others be added when calling functions
cas_set_options(base_folder = fs::path(fs::path_temp(), "castarter_data"))
cas_options_list <- cas_get_options()
cas_options_list
cas_options_list2 <- cas_get_options(project = "test_project")
cas_options_list2
cas_set_options(
base_folder = fs::path(fs::path_temp(), "castarter_data"),
project = "test_project",
website = "test_website"
)
cas_options_list3 <- cas_get_options()
cas_options_list3
# Passing an argument overwrites the arguments set with options
cas_options_list4 <- cas_get_options(website = "test_website4")
cas_options_list4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.