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
hy_set_default_db(hydat_path = NULL)
Value
returns the previous value of hy_default_db.
Arguments
hydat_path
The path to the a HYDAT sqlite3 database file
(e.g., hy_test_db)
if (FALSE) {
# set default to the test databasehy_set_default_db(hy_test_db())
# get the default valuehy_default_db()
# set back to the default db locationhy_set_default_db(NULL)
}