download_metab_run: Download metabolism run data data to local file destination

Description Usage Arguments Value Author(s) Examples

View source: R/download_metab_run.R

Description

Download files stored in a metabolism run SB item to a user-specified (or temp file) location. A new folder will be created within that location to store the downloaded files. The default is to download all available files, but specific files may be specified with the files argument.

Usage

1
2
3
download_metab_run(title, files = NA, folder = tempdir(),
  on_remote_missing = c("stop", "return_NA"), on_local_exists = c("stop",
  "skip", "replace"))

Arguments

title

the title of the metabolism run (date, tag, and strategy separated by spaces)

files

NA for all files, or a list of vectors of specific filenames (character) to download, one vector per title

folder

string for a folder location where files should be saved, or a vector of as many folders as there are item_ids

on_remote_missing

character indicating what to do if the

on_local_exists

character indicating what to do if the folder already contains a file with the intended download name

Value

file handle (character path) for the downloaded file, or NA if the timeseries is unavailable on ScienceBase

Author(s)

Alison P Appling

Examples

1
2
3
4
## Not run: 
download_ts(var_src = 'doobs_nwis', site_name = 'nwis_06893300')

## End(Not run)

USGS-R/mda.streams documentation built on Dec. 19, 2017, 10:25 p.m.