nimble-dev / nimble

The base NIMBLE package for R
http://R-nimble.org
BSD 3-Clause "New" or "Revised" License
156 stars 23 forks source link

attempt to use non-existent nimbleList not cleanly error trapped #1484

Open paciorek opened 2 months ago

paciorek commented 2 months ago
mynf <- nimbleFunction(
    setup = function() {
        myList <- nimbleList(x = double())
    },
    run = function() {
        ll <- myList$new()
        branch$x = 3.0  # misnamed
    }
)

rmynf <- mynf()
cmynf <- compileNimble(rmynf)
# Error in if (!(isSymFunc || isSymList)) stop(exprClassProcessingErrorMsg(code,  : 
#  missing value where TRUE/FALSE needed