local_storage can download traits data from LEDA and Akhmetzhanova databases and store them in a local folder.
local_storage(db,directory)
nothing
can contain the following values: "AMF" and "LEDA" depending on the database which should be downloaded
the directory where the local Rda files will be stored
Gionata Bocci <boccigionata@gmail.com>>
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.