ChAMP was installed and library in R, however, I can't use the function
2
1
Entering edit mode
@doctorjiangtao-15071
Last seen 6.1 years ago


> Hi, ChAMP was installed in R, however, I can't  load the function. ChAMPdata could be used.

 

library("ChAMP")
Error: package or namespace load failed for 'ChAMP' in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/mvtnorm/libs/mvtnorm.so':
  `maximal number of DLLs reached...
In addition: Warning messages:
1: replacing previous import 'plyr::summarise' by 'plotly::summarise' when loading 'ChAMP' 
2: replacing previous import 'plyr::rename' by 'plotly::rename' when loading 'ChAMP' 
3: replacing previous import 'plyr::arrange' by 'plotly::arrange' when loading 'ChAMP' 
4: replacing previous import 'plyr::mutate' by 'plotly::mutate' when loading 'ChAMP' 

 

 

 

 

champ • 1.7k views
ADD COMMENT
1
Entering edit mode
Yuan Tian ▴ 270
@yuan-tian-13904
Last seen 2.6 years ago
United Kingdom

Hello:

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

I am now fixing this issue, but it's 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.

On user level, the .Renviron file could be find(created) in your home directory.

On system level, The Renviron file should be at /usr/local/lib64/R/3.4.4/lib64/R/etc (on my linux server).

(Also, I suggest you restart your R session, then try load ChAMP, so that you can unload all other packages.)

Best

Yuan Tian

ADD COMMENT
0
Entering edit mode

The system location is returned by R.home("etc"), but I would recommend modifying an .Renviron file at path.expand("~")

ADD REPLY
0
Entering edit mode
@doctorjiangtao-15071
Last seen 6.1 years ago

Dear Yuan and Martin:

Thank you very much. I used R.home("etc")  to find the location and revise the Renviron file. Then Rstudio collapsed. We revised it to "R_MAX_NUM_DLLS=150". Now it works. Report to you.

Best,

Tao 

ADD COMMENT

Login before adding your answer.

Traffic: 757 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