rqtl / qtl2

QTL analysis software for high-dimensional data and complex cross designs
https://kbroman.org/qtl2
GNU General Public License v3.0
34 stars 23 forks source link

qtl2 crashing R sessions via Rcpp #204

Closed rkmeade closed 2 years ago

rkmeade commented 3 years ago

I just downloaded the new version of R/qtl2 (0.28), and for reference, I am using R version 4.0.3.

When I loaded qtl2 with the library command, then used qtl2::read_cross2() on a zip file, I would first receive the error:

Error in nalleles(output$crosstype) : function 'Rcpp_precious_preserve' not provided by package 'Rcpp'

Re-running the qtl2::read_cross2() command would then give me a fatal error that crashed my R session.

Installing Rcpp separately seems to have fixed the problem, but I just wanted to post the issue in case there is anything that can be done with the package to prevent others from experiencing this issue.

kbroman commented 3 years ago

Thanks for your note and solution. It seems like I need to indicate a dependency on Rcpp >= 1.0.7. That would force the Rcpp package update.