Closed kylebaron closed 1 month ago
If you drop the plugin:
``` r
library(mrgsolve)
#>
#> Attaching package: 'mrgsolve'
#> The following object is masked from 'package:stats':
#>
#> filter
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
code <- '
$CMT D B C2
$DES
dxdt_D = -1;
dxdt_B = 5;
dxdt_C = 5;
'
mod <- mcode("foo", code)
#> Warning: Missing differential equation(s):
#> --| missing: C2
#> --| suppress with @!audit block option
#> Building foo ...
#> error.
#>
#> ---:: stderr ::---------------------------------------------
#> using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
#> using SDK: ‘MacOSX13.3.sdk’
#> 17:1: error: use of undeclared identifier 'dxdt_C'
#> dxdt_C = 5;
#> ^
#> 1 error generated.
#> make: *** [foo-mread-source.o] Error 1
#>
#> ------------------------------------------------------------
#> Error: the model build step failed.
mrgsim(mod)
#> Error in eval(expr, envir, enclos): object 'mod' not found
Created on 2024-03-22 with reprex v2.0.2```
Looks like you have to be using both
Created on 2024-03-22 with reprex v2.0.2