Search
Question: could not find function "champ.load"
0
7 months ago by
david.ch0
david.ch0 wrote:

Hi,

I Have installed the most recent Champ version 2.9.10

ChAMP.load gives me the error message:

Error in champ.load(directory = getwd(), method = "ChAMP", methValue = "B",  :

And 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...

Any ideas or help is appreciated.

modified 6 months ago • written 7 months ago by david.ch0
2
7 months ago by
Martin Morgan ♦♦ 22k
United States
Martin Morgan ♦♦ 22k wrote:

Make sure that you have a valid and current installation of Bioconductor

BiocInstaller::biocValid()

Depending on your version of R, you may be able to increase the number of DLLs that can be loaded. See ?R_MAX_NUM_DLLS.

Hello Martin,

Thank you for your response. I have the most recent R version 3.4.4.

How I can see the number of DLLs I use and how I can increase it?

Thanks!

1

Hello David:

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).

I am now fixing the package, deciding to cut down some packages. I have detected that if I remove some large packages like DMRcate or missMethyl. ChAMP's loading DLL numbers would decrease significantly.

Best

Yuan Tian

Usually one would set this on a user or project level, rather than at the system level. From ?.Renviron

the files searched for are '.Renviron' in the current or in the user's home directory (in that order)`

Hello Yuan,

I can not locate Renviron file. I am using Mac.

0
6 months ago by
david.ch0
david.ch0 wrote:

Thanks for all replies. The "renviron" file in Mac is located at:

/Library/Frameworks/R.framework/Versions/3.4/Resources/etc

I even couldn't start RStudio  when set R_MAX_NUM_DLLS=512

R_MAX_NUM_DLLS=150 worked fine.

ChAMP works.