runAD: Run an Executable Binary File

View source: R/PBSadmb.r

runADR Documentation

Run an Executable Binary File

Description

Run the executable binary file 'prefix'.exe that was created by makeAD.

Usage

runAD(prefix, argvec="", logfile=TRUE, add=TRUE, verbose=TRUE)

Arguments

prefix

string name prefix of the ADMB project (e.g., "vonb").

argvec

string scalar/vector of arguments appropriate for the executable 'prefix'.exe.

logfile

logical: if TRUE, create a log file of the messages from the shell call.

add

logical: if TRUE, append shell call messages to an exsiting log file.

verbose

logical: if TRUE, report the shell call an its messages to the R console.

Details

This function typically reads the two files 'prefix'.dat and 'prefix'.pin, although in same cases one or both of these files may not be necessary.

If logfile=TRUE, output (including error messages, if any) will appear in 'prefix'.log. If verbose=TRUE, it will appear in the R console.

Value

Invisibly returns the results of the shell call.

Note

A wrapper function that can be called from a GUI exists as .win.runAD.

Author(s)

Jon T. Schnute, Scientist Emeritus
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
Last modified Rd: 2009-09-10

See Also

runMC, makeAD, cleanAD


PBSadmb documentation built on Nov. 11, 2023, 1:07 a.m.