Question: ChAMP error while lazyloading the latest version ChAMP_2.9.10
gravatar for yura.grabovska
20 months ago by
yura.grabovska20 wrote:

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/':
  `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/
LAPACK: /usr/lib/lapack/

[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           

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 • 361 views
ADD COMMENTlink modified 20 months ago by Yuan Tian120 • written 20 months ago by yura.grabovska20
Answer: ChAMP error while lazyloading the latest version ChAMP_2.9.10
gravatar for Yuan Tian
20 months ago by
Yuan Tian120
University College London
Yuan Tian120 wrote:



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.


Yuan Tian

ADD COMMENTlink written 20 months ago by Yuan Tian120
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 189 users visited in the last hour