Open rkchung opened 1 year ago
Thank you for posting this issue. It took me sometime to figure out the issue. It run successfully when R version was downgraded to R-4.0.4. It would be great if this could be resolved. Otherwise, it is nice if the compatibility issue is described in Vignettes.
Hello,
When running the locus analysis with R version 4.2+, a "the condition has length > 1" error is thrown in multiple places in the L function of L.R.
The first occurrence is line 80:
if( !is.null(alleles_binned) ) {
Seems like this is a known error that use to be a warning in R 4.1 (https://stackoverflow.com/questions/72090706/new-error-no-first-element-being-used-when-condition-has-length-1).
If you wrap these vectors with 'any', it seems to correct the issue e.g.
if( any(!is.null(alleles_binned)) ) {
What do you think of this fix?