Closed fumi-github closed 5 months ago
I also encountered the error. Happens when length(msres[,1]) > 100000
. This fixes the problem
@fumi-github thank you picking this up + for the reproducible example (sorry about the delay in replying/hiatus in package maintenance), and thank you @nickhir for also reporting the issue - this PR can be merged!
The following part within the
msprep
function sometimes does not work as intended becausemsres[, 1]
is numeric and1:length(idlevels)
is integer. It seems to occur when the vectors are very long.To reproduce this issue, download a sample dataset and execute the following code. msrescol1.rds idlevels.rds