post_meta: Post new metadata file[s] to SB

View source: R/post_meta.R

post_metaR Documentation

Post new metadata file[s] to SB

Description

If a file with the same name already exists in Sites_meta, the on_exists argument specifies how to manage the conflict.

Usage

post_meta(files, on_exists = c("stop", "skip", "replace", "merge"),
  verbose = TRUE)

Arguments

files

character one or more files to post to SB

on_exists

character. what should be done when an item already exists?

verbose

logical. Should status messages be given?

Value

an item list

Author(s)

Alison Appling

Examples

## Not run: 
login_sb()
set_scheme("mda_streams_dev")
metafile <- stage_meta(sites=list_sites(), folder="temp")
post_meta(metafile, on_exists="stop", verbose=TRUE)
set_scheme("mda_streams")

## End(Not run)

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