Hi Anisha,
It turns out that this works in the compiled code calculations, but we raise an error in checking the model before one can get to that point.
I made a minor change to how we do model checking to allow one to turn off that checking via a nimble option. If you do the following, you should be able to run the compiled version of the code. Don't try to do any calculations with the uncompiled model or you will get an error caused by difficulties NIMBLE has with scalars versus vectors/matrices (related to differences between R and C++) when running uncompiled.
```
nimbleOptions('checkModelBasics'=FALSE)
model <- nimbleModel(code, constants = constants, data=data, check = FALSE, calculate = FALSE)
cmodel <- compileNimble(model)
## Calculations with `cmodel` should work, but not with `model`.
```
You'll need to install nimble from the GitHub branch I created, like this:
remotes::install_github("nimble-dev/nimble", ref = "no_check_basics", subdir = "packages/nimble")
-chris