cas_set_db_folder: Set folder for storing the database

View source: R/cas_database.R

cas_set_db_folderR Documentation

Set folder for storing the database

Description

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.

Usage

cas_set_db_folder(path = NULL, ...)

cas_get_db_folder(path = NULL, ...)

Arguments

path

A path to a location used for storing the database. If the folder does not exist, it will be created.

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()

giocomai/castarter documentation built on April 23, 2024, 11:14 p.m.