delete_metab_model: Delete a metab_model item from SB

Description Usage Arguments Examples

View source: R/delete_metab_model.R

Description

Delete the metab_model item and its files from SB

Usage

1
delete_metab_model(model_name, files_only = FALSE, verbose = TRUE)

Arguments

model_name

the model name, e.g., "nwis_05515500-35-150729 0.1.2 compare_par_srces"

files_only

logical. Only delete the file[s], leaving an empty item?

verbose

logical. Give status messages?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
set_scheme('mda_streams_dev')
login_sb()
mm <- streamMetabolizer::metab_mle(info=list(config=data.frame(site="dummy")))
staged <- stage_metab_model("150415 0.0.0 dummy_model", mm)
mname <- parse_metab_model_path(staged)$model_name
post_metab_model(staged)
list_metab_models()
sbtools::item_list_files(locate_metab_model(list_metab_models()))$fname
mda.streams:::delete_metab_model(mname, files_only=TRUE)
sbtools::item_list_files(locate_metab_model(list_metab_models()))$fname
mda.streams:::delete_metab_model(mname)
list_metab_models()
set_scheme('mda_streams')

## End(Not run)

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