Skip to contents

Download pelagic data system tracks in as csv

Usage

retrieve_pds_tracks_data(
  path,
  secret = NULL,
  token = NULL,
  id = NULL,
  overwrite = TRUE
)

Arguments

path

String with path to file where API request should be saved

secret

Access secret code for the account

token

Access token for the account

id

Trip unique id from which download tracks data

overwrite

Will only overwrite existing path if TRUE.

Value

The file path

Examples

retrieve_pds_tracks_data("test.csv")
#> [1] "test.csv"
file.remove("test.csv")
#> [1] TRUE