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")

Try the taxadb package in your browser

Any scripts or data that you put into this service are public.

taxadb documentation built on March 31, 2023, 10:20 p.m.