cites_db_download: Download the CITES database to your local computer

View source: R/download.R

cites_db_downloadR Documentation

Download the CITES database to your local computer

Description

This command downloads the CITES shipments database and populates a local database. The download is large (~158 MB), and the database will be ~5 GB on disk. During import 10 GB of disk space may be used temporarily.

Usage

cites_db_download(
  tag = NULL,
  destdir = tempdir(),
  cleanup = TRUE,
  verbose = interactive()
)

Arguments

tag

What release tag of data to download. Defaults to the most recent. Releases are expected to come twice per year. See all releases at https://github.com/ropensci/citesdb/releases.

destdir

Where to download the compressed file.

cleanup

Whether to delete the compressed file after loading into the database.

verbose

Whether to display messages and download progress

Details

The database is stored by default under rappdirs::user_data_dir(), or its location can be set with the environment variable CITES_DB_DIR.

Examples


## Not run: 
cites_db_download()

## End(Not run)


ropensci/citesdb documentation built on May 13, 2023, 1:53 a.m.