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,
cids = NULL,
user = NULL,
pwd = NULL,
wc.akey = "VVeerW+G6YUe7olzlrOr6q5o2Nkjx5PTEwuwElcPyKc=",
wc.skey = "7k9MupziDacYNur/3IPMDjn7wum6oQk5eV2LRj86iDw=",
...
)
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
additional arguments passed to smru_get_mdb
or wc_get_files()