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

View source: R/local_storage.R

local_storageR Documentation

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)

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

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.

Value

nothing

Author(s)

Gionata Bocci <boccigionata@gmail.com>>


GioBo/TR8 documentation built on June 16, 2022, 9:10 p.m.