download_meta: Download metadata data to local file destination

View source: R/download_meta.R

download_metaR Documentation

Download metadata data to local file destination

Description

Download a metadata file to a user-specified (or temp file) location

Usage

download_meta(type, folder = tempdir(), on_remote_missing = c("stop",
  "return_NA"), on_local_exists = c("stop", "skip", "replace"))

Arguments

type

the metadata type

folder

string for a folder location

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)

Corinna Gries, Jordan S Read, Luke A Winslow, Alison P Appling

Examples

## Not run: 
download_meta(type="basic", on_local_exists="replace")

## End(Not run)

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