WFO.remember {WorldFlora}R Documentation

Remember the location of the Taxonomic Backbone data set

Description

The function remembers where the Taxonomic Backbone data was downloaded to. In case that no arguments are specified, then data.frame WFO.data will contain the previously specified Taxonomic Backbone data.

Usage

    WFO.download(WFO.url =
      paste0("https://files.worldfloraonline.org/files/WFO_Backbone/",
             "_WFOCompleteBackbone/WFO_Backbone.zip"),
    save.dir = getwd(), WFO.remember = TRUE,
    timeout = 500, ...)

    WFO.remember(WFO.file = NULL, WFO.data = "WFO.data", WFO.pos = 1)

Arguments

WFO.url

Hyperlink to the download from the World Flora Online.

save.dir

Directory where the file will be downloaded and unzipped.

WFO.remember

Remember the location of the file for WFO.remember.

timeout

Timeout in seconds for some internet operations, to be modified among Options Settings.

...

Other arguments for download.file.

WFO.file

File path to the Taxonomic Backbone data ('classification.txt').

WFO.data

Name of data set to be used by other WorldFlora functions.

WFO.pos

Argument pos as in assign.

Details

These functions avoid that a user needs to reload and re-specify the location of the Taxonomic Backbone data that was previously downloaded from the World Flora Online website. The location is saved in a text file in the 'etc' directory of the WorldFlora directory.

Value

The function remembers the local location of the Taxonomic Backbone data.

Author(s)

Roeland Kindt (World Agroforestry)

Examples


## Not run: 

# change the working directory
setwd(choose.dir())

# download the Taxonomic Backbone data
WFO.download()

# remember the previous download and avail the data as 'WFO.data'
WFO.remember()

# check
WFO.match("Faidherbia albida", WFO.data=WFO.data)

## End(Not run)


[Package WorldFlora version 1.14-3 Index]