library(mrgsolve)
#>
#> Attaching package: 'mrgsolve'
#> The following object is masked from 'package:stats':
#>
#> filter
code <- '
$SET a = 2
'
mod <- mcode("foo", code, compile = FALSE)
#> Error in a[valid] <- all_updatable[m[valid]]: replacement has length zero
library(mrgsolve)
#>
#> Attaching package: 'mrgsolve'
#> The following object is masked from 'package:stats':
#>
#> filter
code <- '
$SET
a = 2
end = 24
'
mod <- mcode("foo", code, compile = FALSE)
Can't believe we never ran into this before:
Created on 2024-09-23 with reprex v2.1.1
But this works
Created on 2024-09-23 with reprex v2.1.1