hy_set_default_db: Set the default database path

Description Usage Arguments Value Examples

View source: R/hy_db.R

Description

For many reasons, it may be convenient to set the default database location to somewhere other than the global default. Users may wish to use a previously downloaded version of the database for reproducibility purposes, store hydat somewhere other than hy_dir().

Usage

1
hy_set_default_db(hydat_path = NULL)

Arguments

hydat_path

The path to the a HYDAT sqlite3 database file (e.g., hy_test_db)

Value

returns the previous value of hy_default_db.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# set default to the test database
hy_set_default_db(hy_test_db())

# get the default value
hy_default_db()

# set back to the default db location
hy_set_default_db(NULL)

## End(Not run)

ropensci/tidyhydat documentation built on Sept. 20, 2021, 11:50 a.m.