This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Installing qgraph package on Mac

Hello

I have been trying to install qgraph R package on Mac, even I have updated the OS but still not working

who knows the solution please

library(qgraph)
package ‘qgraph’ was built under R version 4.0.2Error: package or namespace load failed for ‘qgraph’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so':
  dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so, 6): Symbol not found: _EXTPTR_PTR
  Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
  Expected in: /Library/Frameworks/R.framework/Resources/lib/libR.dylib
 in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
>
r

Hi,

Did you try to install the package with devtools?

devtools::install_github("gaborcsardi/pkgconfig")
devtools::install_github("igraph/rigraph")

This is the developmental version. devtools will deal better with the missing dependencies. From the error that you've posted, it seems that you don't have qgraph installed. So, installing this package before trying to install igraph might solve the issue. Although you might get other errors related with other missing packages. Try with devtools and let me know if worked.

António

Installation goes fine but loading the library returns error

Yes, I see the problem qgraph requires R version less than 4.0.2. So, it can not load the package.

Can you try to load the qgraph package: library(qgraph). If the error persists, try to install this package with the development version through devtools: devtools::install_github("SachaEpskamp/qgraph").

A : Has @antonioggsousa's comment solved this issue? If so I can move his comment to an answer.

Thank you I have not tried that yet I would let you know soon

0 answers

No answers yet.

Log in to answer this question.