R/download_data.R
download_data.Rd
Satellite tracking data, in a zipfile, are downloaded from a
user-specified URL (for accessing zipfiles on GoogleDrive or Dropbox),
accessed from the SMRU data server, or accessed from the Wildlife Computers
Portal API via the source
argument.
download_data(
path = NULL,
dest = NULL,
source = "smru",
unzip = FALSE,
cid = NULL,
user = NULL,
pwd = NULL,
wc.akey = "VVeerW+G6YUe7olzlrOr6q5o2Nkjx5PTEwuwElcPyKc=",
wc.skey = "7k9MupziDacYNur/3IPMDjn7wum6oQk5eV2LRj86iDw=",
owner.id = NULL,
subset.ids = NULL,
download = TRUE,
...
)
a url or local filepath pointing to a zipfile of tag datafiles
destination path to save download
source type of data to be downloaded. Can be one of:
smru
- SMRU Data Server;
wc
- Wildlife Computers Data Portal API;
googledrive
- a url link to a zipfile shared on a GoogleDrive;
dropbox
- a url link to a zipfile shared on Dropbox;
local
- a local filepath to a zipfile containing SMRU or WC tag datafiles.
(logical) should the downloaded zipfile be unzipped.
SMRU tag deployment campaign id(s) to download, eg. "ct180"
SMRU data server username as a quoted string
SMRU data server password as a quoted string
an Access Key issued by Wildlife Computers for their API
a Secret Key issued by Wildlife Computers for their API
the Wildlife Computers uuid associated with the data owner
a single column .CSV file of WC UUID's to be included in the QC, with uuid as the variable name.
(logical) indicating if the data is to be downloaded from
the tag manufacturer's server. If the source is wc
and download = FALSE
then only the Wildlife Computers tag deployment metadata is downloaded.
additional arguments passed to smru_get_mdb
or wc_get_files()