tests/testthat/setup-test_db.R

#test_db <- file.path(tempdir(), "rfishbase")
#dir.create(test_db, showWarnings = FALSE)
#Sys.setenv(FISHBASE_HOME=test_db)
#options(rfishbase_local_prov=TRUE)
#options(rfishbase_local_db=TRUE)

Try the rfishbase package in your browser

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

rfishbase documentation built on June 7, 2023, 6:14 p.m.