This is intended to be a drop-in replacement for swmmr::run_swmm().

swmm_run(inp, rpt = NULL, out = NULL, overwrite = FALSE, quiet = TRUE)

Arguments

inp

Path to an input file.

rpt

Path to a report file (that does not yet exist or will be overwritten).

out

Path to an output file (that does not yet exist or will be overwritten).

overwrite

Use overwrite = TRUE overwrite rpt and out.

quiet

Silence default SWWM output.

Examples

swmm_run(swmm_example_file("Example1-Pre.inp"))
#> $inp #> [1] "/Users/runner/runners/2.165.2/work/_temp/Library/swmm/swmm_examples/Example1-Pre.inp" #> #> $rpt #> [1] "/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Rtmpt68j8Q/fileaab485261b8.rpt" #> #> $out #> [1] "/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Rtmpt68j8Q/fileaab188d9c20.out" #> #> $last_error #> [1] 0 #> #> $last_warning #> [1] 0 #>