download_metab_run: Download metabolism run data data to local file destination

View source: R/download_metab_run.R

download_metab_runR Documentation

Download metabolism run data data to local file destination

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

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

## Not run: 
download_ts(var_src = 'doobs_nwis', site_name = 'nwis_06893300')

## End(Not run)

USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.