Creates a local mock SQL database from package test data for demonstration purposes. No internet connection required.
See also
Other database:
count_db_ids()
,
db_create()
,
db_delete()
,
db_download()
,
is_in_db()
,
list_db_ids()
Examples
library(restez)
# set the restez path to a temporary dir
restez_path_set(filepath = tempdir())
#> ... Creating '/tmp/RtmpJvhvXj/restez'
#> ... Creating '/tmp/RtmpJvhvXj/restez/downloads'
# create demo database
demo_db_create(n = 5)
# in the demo, IDs are 'demo_1', 'demo_2' ...
(gb_sequence_get(id = 'demo_1'))
#> demo_1
#> "ATTTAACTAT"
# Delete a demo database after an example
db_delete(everything = TRUE)