cas_set_db_folder | R Documentation |
Consider using a folder out of your current project directory, e.g. cas_set_db_folder("~/R/cas_data/")
: you will be able to use the same database in different projects, and prevent database files from being sync-ed if you use services such as Nextcloud or Dropbox.
cas_set_db_folder(path = NULL, ...)
cas_get_db_folder(path = NULL, ...)
path |
A path to a location used for storing the database. If the folder does not exist, it will be created. |
The path to the database folder, if previously set; the same path as given to the function; or the default, cas_data
is none is given.
Other database functions:
cas_check_db_folder()
,
cas_check_use_db()
,
cas_connect_to_db()
,
cas_create_db_folder()
,
cas_disable_db()
,
cas_disconnect_from_db()
,
cas_enable_db()
,
cas_get_db_settings()
,
cas_read_from_db()
,
cas_set_db()
,
cas_write_to_db()
cas_set_db_folder(fs::path(fs::path_home_r(), "R", "cas_data"))
cas_set_db_folder(fs::path(fs::path_temp(), "cas_data"))
cas_get_db_folder()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.