post_metab_run: Post files to a model run item on SB

View source: R/post_metab_run.R

post_metab_runR Documentation

Post files to a model run item on SB

Description

Post any number of files to an SB item representing a complete, multi-site model run. These files will probably include a .tsv config file, an .RData file containing a list of model fit objects, and an .Rout file containing the log information from the run.

Usage

post_metab_run(folder, files, on_exists = c("stop", "skip", "addfiles"),
  verbose = TRUE)

Arguments

folder

a single folder name from which the tag, strategy, and date (and therefore metab_run title) will be pulled, and where named files will be sought

files

a vector of filenames to select from within folder and to post to the new SB item

on_exists

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

verbose

logical. Should status messages be given?

Examples

## Not run: 
post_metab_run(
  folder=make_metab_run_title(config$date[1], config$tag[1], "styx_001_experiment_sim_models"),
  files=c("config.tsv", "condor_notes.txt"))

## End(Not run)

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