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.
Examples
# \donttest{
rxode2({
a <- b
})
#>
#>
#> rxode2 5.1.8.9000 model named rx_8527b2a0212de9f1d12a7669ae8bf822 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_8527b2a0212de9f1d12a7669ae8bf822_.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.1/lib/R/include/Rmath.h:337: note: this is the location of the previous definition
#> 337 | #define rlnorm Rf_rlnorm
#> |
# }
