You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on whether project is provided, we can get an R error related to whether project is an array (resulting in a nonconformable array error or not (in which case uncompiled behavior is fine).
## here `m$project` is an array
code<- nimbleCode({
p3[1:3,1:2] <- project[1:3] + yday[1:3,1:2]
})
m <- nimbleModel(code)
# Error in model$project[1:3] + model$yday[1:3, 1:2] :
# non-conformable arrays
## here `m$project` is numeric
code<- nimbleCode({
p3[1:3,1:2] <- project[1:3] + yday[1:3,1:2]
})
m <- nimbleModel(code, inits = list(project = rnorm(3)))
I think this has to do with the fact that we initialize variables as arrays with a given dimension when no inits/data/constants info is provided.
The text was updated successfully, but these errors were encountered:
Depending on whether
project
is provided, we can get an R error related to whetherproject
is an array (resulting in anonconformable array
error or not (in which case uncompiled behavior is fine).I think this has to do with the fact that we initialize variables as arrays with a given dimension when no inits/data/constants info is provided.
The text was updated successfully, but these errors were encountered: