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=",
  ...
)

Arguments

path

a url or local filepath pointing to a zipfile of tag datafiles

dest

destination path to save download

source

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.

unzip

(logical) should the downloaded zipfile be unzipped.

cids

SMRU tag deployment campaign id(s) to download, eg. "ct180"

user

SMRU data server username as a quoted string

pwd

SMRU data server password as a quoted string

wc.akey

an Access Key issued by Wildlife Computers for their API

wc.skey

a Secret Key issued by Wildlife Computers for their API

...

additional arguments passed to smru_get_mdb or wc_get_files()