Skip to content

warnRHSonlyDynIdx fails when variable appears multiple times on RHS #996

@paciorek

Description

@paciorek

As reported by a user, we get an untrapped R error when have syntax like this:

tabfin[l,3]~dpois(N[tabfin[l,1],Q[tabfin[l,2]]]*E[tabfin[l,2],tabfin[l,4]]*P[tabfin[l,1],tabfin[l,4]]*sum(q[,tabfin[l,4]]*Sp[tabfin[l,1],]*V[tabfin[l,2],]))

The error occurs in

parentNode <- decl$symbolicParentNodesReplaced[[which(vars[idx] == decl$rhsVars)]]

because the result of which has length greater than 1.

PR forthcoming.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions