Learn R Programming

TR8 (version 0.9.23)

local_storage: A utility to storage a local copy of traits data

Description

local_storage can download traits data from LEDA and Akhmetzhanova databases and store them in a local folder.

Usage

local_storage(db,directory)

Value

nothing

Arguments

db

can contain the following values: "AMF" and "LEDA" depending on the database which should be downloaded

directory

the directory where the local Rda files will be stored

Author

Gionata Bocci <boccigionata@gmail.com>>

Details

Downloading data from the web is time consuming, thus a local storage of some traits data will speed up future data requests; this is possible for LEDA and Akhmetzhanova databases. The function must be run only once (ideally before running the tr8 function for the first time): thanks to the rappdirs package, the downloaded data will be stored in the directory commonly used for user data (which depends on the Operatim System where R is running). Users can change the destination folder through the directory parameters, passing the full path of the directory to be used by the function.