metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
GNU General Public License v2.0
131 stars 36 forks source link

autodec plugin grabs some stuff we don't want #1233

Open kylebaron opened 2 months ago

kylebaron commented 2 months ago
library(mrgsolve)
#> 
#> Attaching package: 'mrgsolve'
#> The following object is masked from 'package:stats':
#> 
#>     filter

code <- '
$plugin autodec evtools
$table 
evt::dose = evt::bolus(100, 1);
'

mod <- mcode("foo", code, compile = FALSE)
cpp <- as.list(mod)$cpp_variables
cpp
#>     type  var context
#> 1 double dose    auto

Created on 2024-09-12 with reprex v2.1.1