

LAPACK: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libRlapack.dylib Platform: aarch64-apple-darwin20 (64-bit) Here's my session info: R version 4.1.1 () Files ~/.R/Makevars and ~/.Renviron don't exist.Xcode command line tools is installed ( which clang returns /usr/bin/clang).I also appended /opt/homebrew/bin: to PATH in R so it looks like this now: > Sys.getenv("PATH")

(Maybe this version of gfortran requires Xcode tools that are too new-it says something about 13.2 and when I run clang -version it says 13.0-but I don't see another release of gfortran for Monterey?) When I type which gfortran into Terminal, it returns /opt/homebrew/bin/gfortran. I installed this release of gfortran for Monterey. framework R -Wl,-framework -Wl,CoreFoundationĮrror in Rcpp::sourceCpp("~/github/helloworld.cpp") :Įrror 1 occurred building shared library. Ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib'Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation)Ĭlang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I./inst/include -I"/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/RcppArmadillo/include" -I"/Users/afredston/github" -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c helloworld.cpp -o helloworld.oĬlang++ -arch arm64 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o sourceCpp_4.so helloworld.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0 -L/opt/R/arm64/gfortran/lib -lgfortran -lemutls_w -lm -F/Library/Frameworks/R.framework/. Ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0' I tried running the Rcpp check from this page but I get the following error: > Rcpp::sourceCpp("~/github/helloworld.cpp") I updated it to Monterey in the hope that this would fix some installation issues but it hasn't. I'm trying to use packages that require Rcpp in R on my M1 Mac, which I was never able to get up and running after purchasing this computer.
