leafcutter icon indicating copy to clipboard operation
leafcutter copied to clipboard

leafcutter_ds.R got error

Open q1134269149 opened this issue 10 months ago • 2 comments

Hi, I installed leafcutter by 'conda install davidaknowles::r-leafcutter' on my Linux server. And I run it successfully before "leafcutter_ds.R " command. I got an error when run "leafcutter_ds.R --help " as follows: " Loading required package: Rcpp Error: package or namespace load failed for ‘leafcutter’: package ‘leafcutter’ was installed before R 4.0.0: please re-install it Execution halted " I removed r-base=4.2.3 and reinstalled r-base=3.6.0, however, I got the same error. Next, I tried to reinstall leafcutter by R=3.6.0 with following command: "install.packages("leafcutter")". I failed.

What can I do?

Thanks!

Hang

q1134269149 avatar Apr 11 '24 12:04 q1134269149

I'm having the same problem and asking for help

Chasingwind-Z avatar Apr 13 '24 07:04 Chasingwind-Z

I currently solved this problem by using R 3.4.1 version. Here is my conda version control.

conda create -n LC python=2.7 r-base=3.4.1
conda activate LC
conda install -c davidaknowles r-leafcutter

R
library("leafcutter")

I got this idea by using following commands to find out which r-base version based to build r-leafcutter.

ls -lh /root/miniconda3/envs/LC/lib/R/library/leafcutter/
cd /root/miniconda3/envs/LC/lib/R/library/leafcutter/
cat DESCRIPTION

The DESCRIPTION file contains requirements. And in this file I got the built line. Thus I see R 3.4.1 is a proper solution.

Built: R 3.4.1; x86_64-pc-linux-gnu; 2017-08-04 19:10:17 UTC; unix

Arnoc233 avatar Apr 16 '24 03:04 Arnoc233