Get the last compiled model information as alist
Usage
rxLastCompile(what = c("msg", "stderr", "stdout", "c"))Value
A list contains the following elements:
msgthe message for a bad compilation, or NULL if successful.stdoutthe standard output from the compilationstderrthe standard error from the compilationcthe code code that was used
This list will be returned invisibly, but the function will also message the contents to the console.
See also
Other Model definition:
rxClean(),
rxCompile(),
rxCreateCache(),
rxDelete(),
rxNorm(),
rxPde(),
rxReservedKeywords,
rxSupportedFuns(),
rxSyntaxFunctions,
rxUnloadAll(),
rxode2(),
summary.rxode2()
Examples
# \donttest{
rxode2({
a <- b
})
#>
#>
#> rxode2 5.1.8.9000 model named rx_447de59f44c4e42376ab7f64f782b71a model (✔ ready).
#> value$params: b
#> value$lhs: a
rxLastCompile()
#> ── stderr ──────────────────────────────────────────────────────────────────────
#> using C compiler: ‘gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0’
#> In file included from rx_447de59f44c4e42376ab7f64f782b71a_.c:187:
#> /home/runner/work/_temp/Library/rxode2/include/rxode2_model_shared.h:192:9: warning: ‘rlnorm’ redefined
#> 192 | #define rlnorm(x,y) rxlnorm(x,y)
#> | ^~~~~~
#> In file included from /home/runner/work/_temp/Library/rxode2/include/rxode2.h:13,
#> from /home/runner/work/_temp/Library/rxode2/include/rxode2_model_shared.h:3:
#> /opt/R/4.6.2/lib/R/include/Rmath.h:337:9: note: this is the location of the previous definition
#> 337 | #define rlnorm Rf_rlnorm
#> | ^~~~~~
# }
