demo_db_create: Create demo database

Description Usage Arguments See Also Examples

View source: R/db-setup-tools.R

Description

Creates a local mock SQL database from package test data for demonstration purposes. No internet connection required.

Usage

1
demo_db_create(db_type = "nucleotide", n = 100)

Arguments

db_type

character, database type

n

integer, number of mock sequences

See Also

Other database: count_db_ids, db_create, db_delete, db_download, is_in_db, list_db_ids

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(restez)
# set the restez path to a temporary dir
restez_path_set(filepath = tempdir())
# create demo database
demo_db_create(n = 5)
restez_connect()
# in the demo, IDs are 'demo_1', 'demo_2' ...
(gb_sequence_get(id = 'demo_1'))

# Delete a demo database after an example
db_delete(everything = TRUE)

restez documentation built on Nov. 27, 2018, 1:05 a.m.