Installing qgraph package on Mac
0
0
Entering edit mode
4.2 years ago
zizigolu ★ 4.3k

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 • 2.0k views
ADD COMMENT
1
Entering edit mode

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

ADD REPLY
0
Entering edit mode

Installation goes fine but loading the library returns error

ADD REPLY
1
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

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