wtRunInputFile: Run WTAQ with given input file

wtRunInputFileR Documentation

Run WTAQ with given input file

Description

Run a WTAQ simulation with the given input file

Usage

wtRunInputFile(inputFile, wtaq.exe = .wtaq_path(), targetDirectory = tempdir(), 

    show.results = FALSE, copyToTarget = TRUE, configuration = NULL, 

    batchRun = FALSE, dbg = FALSE)

Arguments

inputFile

Existing WTAQ input file

wtaq.exe

full path to WTAQ executable (default: compiled executable in package

subfolder "extdata" as defined in helper function .wtaq_path() )

targetDirectory

optional. Target directory. If no target directory is given, a temporary

directory will be used.

show.results

if TRUE, the content of the results file will be shown in the R console.

Default: FALSE

copyToTarget

if TRUE, the input file is copied to the target directory. Set this

argument to FALSE if the input file already is in the target directory

and does not need to be copied again.

configuration

WTAQ configuration object as retrieved by wtConfigure. If

not given (default), it will be constructed from the input file

batchRun

if TRUE batch run (may require admin rights!), else using direct command, default: FALSE

dbg

if TRUE, debug messages are shown, else not. Default: FALSE

Value

model result as read with wtReadPlotFile from the output

file generated by the WTAQ modelling software

Author(s)

Hauke Sonnenberg

See Also

wtInputFileLines, wtReadInputFile,wtRunConfiguration


KWB-R/kwb.wtaq documentation built on June 17, 2022, 3:05 a.m.