convAD | R Documentation |
Convert code in 'prefix'.tpl
to C++ code in 'prefix'.cpp
.
convAD(prefix, raneff=FALSE, safe=TRUE, dll=FALSE, debug=FALSE,
logfile=TRUE, add=TRUE, verbose=TRUE, pathfile=NULL)
prefix |
string name prefix of the ADMB project (e.g., |
raneff |
logical: if |
safe |
logical: if |
dll |
create dll (rather than executable) |
debug |
compile with debug symbols |
logfile |
logical: if |
add |
logical: if |
verbose |
logical: if |
pathfile |
string name of 2-column text file that details the
relevant paths for the R variables |
This function invokes the ADMB command tpl2cpp.exe
or tpl2rem.exe
,
if raneff
is FALSE
or TRUE
respectively. If logfile=TRUE
,
any errors will appear in 'prefix'.log
. If verbose=TRUE
,
they will appear in R console.
Invisibly returns the shell call and its messages.
A wrapper function that can be called from a GUI exists as .win.convAD
.
The optional pathfile
is offered for use in command (non-GUI) functions.
Users can easily create this file in a text editor.
Note that on UNIX systems, only the admbpath
(actually the path to ADMB's home directory)
and text editor are used because the MinGW compiler (gccpath
) and UNIX tools are already recognised.
Jon T. Schnute, Scientist Emeritus
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
Last modified Rd: 2014-02-27
compAD
, linkAD
,
makeAD
, readADpaths
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.