nutterb / HydeNet

Hybrid Decision Networks in R
Other
23 stars 3 forks source link

univariate distributions now getting warning #22

Closed jdutch27 closed 9 years ago

jdutch27 commented 9 years ago

Not sure if this is related to argument processing in setNode after implementing setNodeModels, but I now get a warning message:

net <- HydeNetwork(~ wells

net <- setNode(network = net, node = pregnant, nodeType = "dbern", p=.4) Error in if (wrn.flag) warning(paste(warn.msg, collapse = "\n")) : argument is not interpretable as logical

jdutch27 commented 9 years ago

I reproduced the warning - which actually acts like an error, stopping all action - using the mtcars2 example given in the setNode() documentation.

nutterb commented 9 years ago

I know exactly what that is. I set up the warning buffer as

wrn.flag <- 0
wrn.flag <- ""

That second wrn.flag should have been wrn.msg