Closed jdutch27 closed 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.
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
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