Trying to import data from Understat

Downloading GitHub repo ewenme/understatr@HEAD
✓ checking for file ‘/private/var/folders/ms/5csq8cj53tx36m3t24yf7l7h0000gp/T/RtmpaSFZOt/remotes732a3d1355f7/ewenme-understatr-2e992cc/DESCRIPTION’ (455ms)
─ preparing ‘understatr’:
✓ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘understatr_1.0.1.9000.tar.gz’

Installing package into ‘/Users/sachinprabhuram/Library/R/4.0/library’
(as ‘lib’ is unspecified)

  • installing source package ‘understatr’ ...
    ** using staged installation
    ** R
    ** byte-compile and prepare package for lazy loading
    Error in dyn.load(file, DLLpath = DLLpath, ...) :
    unable to load shared object '/Users/sachinprabhuram/Library/R/4.0/library/Rcpp/libs/Rcpp.so':
    dlopen(/Users/sachinprabhuram/Library/R/4.0/library/Rcpp/libs/Rcpp.so, 6): Symbol not found: _EXTPTR_PTR
    Referenced from: /Users/sachinprabhuram/Library/R/4.0/library/Rcpp/libs/Rcpp.so
    Expected in: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib
    in /Users/sachinprabhuram/Library/R/4.0/library/Rcpp/libs/Rcpp.so
    Calls: ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
    Execution halted
    ERROR: lazy loading failed for package ‘understatr’
  • removing ‘/Users/sachinprabhuram/Library/R/4.0/library/understatr’
    Error: Failed to install 'understatr' from GitHub:
    (converted from warning) installation of package ‘/var/folders/ms/5csq8cj53tx36m3t24yf7l7h0000gp/T//RtmpaSFZOt/file732a4070ea74/understatr_1.0.1.9000.tar.gz’ had non-zero exit status

This is the error that is coming. Please help me on installing this package. Beginner to R btw

It seems to be an issue with the CRAN version of Rcpp for MacOS systems, can you try installing this way?

install.packages("Rcpp", repos="https://rcppcore.github.io/drat")

This is the GitHub issue for reference

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.