ChAMP error while lazyloading the latest version ChAMP_2.9.10
1
0
Entering edit mode
@yuragrabovska-9835
Last seen 3.1 years ago
United Kingdom

I am getting this error when trying to biocLite() the latest version:

 

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/****/R/x86_64-pc-linux-gnu-library/3.4/robustbase/libs/robustbase.so':
  `maximal number of DLLs reached...
ERROR: lazy loading failed for package 'ChAMP'
* removing '/home/****/R/x86_64-pc-linux-gnu-library/3.4/ChAMP'

I know that there is a limit of the number of libraries used at any point, but I have nothing else loaded into the session apart from base packages.

running the following checks: 

> R.utils::gcDLLs()
named list()

> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
[1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C               LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8     LC_MONETARY=en_GB.UTF-8  
[6] LC_MESSAGES=en_GB.UTF-8    LC_PAPER=en_GB.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C           
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] BiocInstaller_1.28.0

loaded via a namespace (and not attached):
[1] compiler_3.4.4    tools_3.4.4       R.methodsS3_1.7.1 R.utils_2.6.0     R.oo_1.21.0      
ChAMP • 998 views
ADD COMMENT
0
Entering edit mode
Yuan Tian ▴ 290
@yuan-tian-13904
Last seen 7 months ago
United Kingdom

 

Hello:

The reason is R does not allow users to load more than 100 DLL. But some large packages like ChAMP would load many dependence, and these dependencies would also load many other packages.

I am now fixing this issue, but it's really challenging because I need to decrease some relying packages maybe. A quick solution for you is that you can reset your Renviron file and add one line: R_MAX_NUM_DLLS=512, then this error should be no more.

The Renviron file should be at /usr/local/lib64/R/3.4.4/lib64/R/etc (on my computer), or you can created .Renviron file in your home folder to fix this issue.

Best

Yuan Tian

ADD COMMENT

Login before adding your answer.

Traffic: 916 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6