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.
Value
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.
See also
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()
Examples
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()