tl_create: Create a Lightning Memory-Mapped Database (LMDB) for a given...

Description Usage Arguments Details Examples

View source: R/tl_create.R

Description

Download raw data and store in a local LMDB database. Importing data is a time-consuming step that needs be run only once per machine and will persist through sessions.

Usage

1
2
3
4
5
6
tl_create(
  provider = getOption("tl_default_provider", "itis"),
  version = tl_latest_version(),
  dir = tl_dir(),
  lines = 100000L
)

Arguments

provider

Abbreviation for a known naming provider. Provider data should first be imported with [tl_create]. Note: setting provider to "itis_test" is for testing purposes only, use "itis" for the full ITIS data. See details

version

version of the authority to use (e.g. four-digit year)

dir

storage location for the LMDB databases

lines

number of lines to read in each chunk.

Details

Naming providers currently recognized by taxalight are:

The default provider is itis, which can be reconfigured by setting tl_default_provider in [options].

Examples

1
2
3
4
5
6
## example uses "itis_test" for illustration only:



 # test may take > 5s
tl_create("itis_test")

taxalight documentation built on Sept. 14, 2021, 5:15 p.m.