Use neon_db_dir() to view or access the currently active database directory. By default, this uses the appropriate application directory for your operating system, see tools::R_user_dir(). This location can be overridden by setting the environmental variable NEONSTORE_DB.

neon_db_dir()

Value

the active neonstore directory.

Examples


neon_db_dir()
#> [1] "/home/runner/.local/share/R/neonstore/duckdb"

## Override with an environmental variable:
Sys.setenv(NEONSTORE_DB = tempdir())
neon_db_dir()
#> [1] "/tmp/RtmpvWqYJ0"
## Unset
Sys.unsetenv("NEONSTORE_DB")