KrishnamurthyLab/spatialEpisim.foundation

"missing value where TRUE/FALSE needed" when testing transmission likelihood matrix during normal usage

Closed this issue · 1 comments

## FIXME: "missing value where TRUE/FALSE needed". The error only occurs
## after many iterations of the loop and data assimilation have occurred.
## Why it becomes invalid, without logical values produced, I'm unsure for
## now. This will need to be resolved after other work is committed.
uniqueInfectionLikelihoods <- length(unique(as.vector(transmissionLikelihoods)))
if (all(countInfected > 0, !(uniqueInfectionLikelihoods > 1)))
stop("The number of unique likelihoods of transmission is not more than one, indicating an issue generating the transmissionLikelihoods matrix.")