Error in if ((nc * nr > getMaxProblemSize()) && warning.requested) {: missing value where TRUE/FALSE needed
Closed this issue · 4 comments
A friend of mine used optmatch ver 09-15 and got an error:
Error in if ((nc * nr > getMaxProblemSize()) && warning.requested) {: missing value where TRUE/FALSE needed
It is really hard to understand what could be the problem as I do not have access to the underlying data. Could it be somehow connected to #209 and therefore an upgrade to version 09-16 is suggested?
This seems like a likely diagnosis to me, particularly if the friend is trying to match with a large data set. It seems less likely that getMaxProblemSize()
or warning.requested
would be the source of the NA that that the nc * nr
operation would. To confirm, the friend could always do whatever produced this error after a
debug(optmatch:::makedist)
and then step through execution up through the point at which "nc
" and "nr
" are assigned,
nc <- length(cns)
nr <- length(rns)
before asking which of nc
, nr
, nc*nr
, getMaxProblemSize()
and warning.requested
is NA
.
Can you update the official version in CRAN repositories also? Seems that version 09-16 resolves this issue, but it is version 09-15 which is still in CRAN.
We're in the process of packing up a new version; it should be up in the next few weeks. In the meantime, you can follow the directions here to install the current development version.
Closing as we're now well past 09-16. @SulevR please comment if this has not been fully resolved.