For information on using this system, please visit this page.
In the daisy function, there is a check for 'bad' column types: if (any(ina <- is.na(type3))) stop(gettextf("invalid type %s for column numbers %s", type2[ina], pColl(which(is.na)))) When such an error is found, the body of the `if` is executed, which causes R to complain about `which(is.na)` because `is.na` is not a logical. The above code should be: if (any(ina <- is.na(type3))) stop(gettextf("invalid type %s for column numbers %s", type2[ina], pColl(which(ina)))) This will fix the bug and report type errors as intended.
Thank you, Nico, for this report.... indeed 'trivial' in so far as it only triggers in case of a user error.. .. but of course you are 100% correct. One last remark: Formally it is wrong to report bugs about recommended packages with a non-R-core maintainer here. maintainer("cluster") would have told you implicitly to report the bug to me only. Of course, this is no longer necessary now. Thanks again, Martin