Skip to content
Prev 57102 / 63424 Next

methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error

Henrik,

If a minimal reprex is hard to construct, could you perhaps instrument your version of R to include a browser() call at the start of the     

else if(!all(signature[omittedSig] == "missing")) {

branch, run the code that triggers the issue for you (and must hit that branch) and tell us what the "signature" and  "omittedSig" objects look like at that point?

Bonus points for figuring out why it is needed to use numerical indexing in 

        omittedSig <- seq_along(omittedSig)[omittedSig]
        signature[omittedSig] <- "missing" # logical index will extend signature!

(I'm sure there is a valid reason, I just don't get it...)

-pd