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

Error when trying to update with single non-updatable item #1237

Open
kylebaron opened this issue Sep 23, 2024 · 0 comments
Open

Error when trying to update with single non-updatable item #1237

kylebaron opened this issue Sep 23, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@kylebaron
Copy link
Collaborator

kylebaron commented Sep 23, 2024

Can't believe we never ran into this before:

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

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

But this works

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)

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

@kylebaron kylebaron self-assigned this Sep 23, 2024
@kylebaron kylebaron added the bug label Sep 23, 2024
@kylebaron kylebaron moved this to Backlog in Development Sep 23, 2024
@kylebaron kylebaron added this to the Next version milestone Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant