tests/testthat/setup-test_db.R

## Optionally: Force a backend type, otherwise will use the best available
## (which is currently MonetDBLite, since it is suggested)
#Sys.setenv(TAXADB_DRIVER="MonetDBLite")
#Sys.setenv(TAXADB_DRIVER="RSQLite")
#Sys.setenv(TAXADB_DRIVER="duckdb")

## All tests only write to tempdir
Sys.setenv(CONTENTID_HOME=tempfile())

## Use locally cached version to allow for offline testing
#options(taxadb_default_provider = "itis_test")
cboettig/taxadb documentation built on April 17, 2024, 6:34 p.m.