Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't dynamic capture model variables when using nm-vars plugin #986

Closed
kylebaron opened this issue May 20, 2022 · 0 comments · Fixed by #987
Closed

Can't dynamic capture model variables when using nm-vars plugin #986

kylebaron opened this issue May 20, 2022 · 0 comments · Fixed by #987
Assignees
Labels
Milestone

Comments

@kylebaron
Copy link
Collaborator

kylebaron commented May 20, 2022

I think you can capture them, but not dynamically.

For example

library(mrgsolve)
#> 
#> Attaching package: 'mrgsolve'
#> The following object is masked from 'package:stats':
#> 
#>     filter
code <- '
$PLUGIN nm-vars
$CMT @number 2

$MAIN 
F1 = 1.23;

'
mod <- mcode("foo", code, capture = "F1")
#>  - item `F1` does not exist in model `foo`
#> Error: all requested `capture` variables must exist in the model

Created on 2022-05-19 by the reprex package (v2.0.1)

@kylebaron kylebaron self-assigned this May 20, 2022
@kylebaron kylebaron added the bug label May 20, 2022
@kylebaron kylebaron added this to the v1.0.5 milestone May 20, 2022
@kylebaron kylebaron linked a pull request May 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant