db_load: Load taxonomic databases

Description Usage Arguments Details Value Supported Beware Examples

Description

Load taxonomic databases

Usage

1
2
3
4
5
6
7
db_load_itis(path, user, pwd = NULL, verbose = TRUE)

db_load_tpl(path, user, pwd = NULL, verbose = TRUE)

db_load_col(path, user = "root", pwd = NULL, verbose = TRUE)

db_load_gbif(verbose = TRUE)

Arguments

path

(character) path to the .sql database file

user

(character) User name

pwd

(character) Password, if any

verbose

(logical) Print messages. Default: TRUE

Details

These functions load SQL DBs into the respective driver, and they return the file path, but they don't load the database

We check if the database used for each source is installed on your machine first. and if it is running or not, with errors for the user if neither are true.

Value

Nothing, just message on success

Supported

Beware

COL database loading takes a long time, e.g., 30 minutes. you may want to run it in a separate R session, or just look at the db_load_col fxn and run the commands in your shell.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
# ITIS
# x <- db_download_itis()
# db_load_itis(x, "<your user name>", "<your password>")

# Plantlist
# x <- db_download_tpl()
# db_load_tpl(x, "<your user name>", "<your password>")

# COL
x <- db_download_col()
db_load_col(x, "<your user name>", "<your password>")

# GBIF
## only checks if sqlite installed
db_load_gbif()

## End(Not run)

taxizedb documentation built on May 2, 2019, 11:41 a.m.