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(),
rxReservedKeywords,
rxSupportedFuns(),
rxSyntaxFunctions,
rxUnloadAll(),
rxode2(),
summary.rxode2()
Examples
# \donttest{
rxode2({
a <- b
})
#>
#>
#> rxode2 5.1.8.9000 model named rx_4260d781a3aa37055651b4aba9aee65d model (✔ ready).
#> value$params: b
#> value$lhs: a
rxLastCompile()
#> ── stderr ──────────────────────────────────────────────────────────────────────
#> using C compiler: ‘gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0’
#> In file included from rx_4260d781a3aa37055651b4aba9aee65d_.c:171:
#> /home/runner/work/_temp/Library/rxode2/include/rxode2_model_shared.h:184: warning: "rlnorm" redefined
#> 184 | #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: note: this is the location of the previous definition
#> 337 | #define rlnorm Rf_rlnorm
#> |
# }
