Skip to contents

Creates the base folder where castarter stores the project database.

Usage

cas_create_db_folder(path = NULL, ask = TRUE, ...)

Arguments

ask

Logical, defaults to TRUE. If FALSE, and database folder does not exist, it just creates it without asking (useful for non-interactive sessions).

Value

Nothing, used for its side effects.

Examples

cas_create_db_folder(path = fs::path(fs::path_temp(), "cas_data"))
#>  The database folder '/tmp/RtmpKZFKM9/cas_db_folder/' does not exist. If you prefer to store database files elsewhere, reply negatively and set your preferred database folder with `cas_set_db_folder()`
#> Error: User input required, but session is not interactive.
#> Query: Do you want to create '/tmp/RtmpKZFKM9/cas_db_folder/' for storing data in a local database?