R version 4.0.2 (2020-06-22) -- "Taking Off Again" Copyright (C) 2020 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin17.0 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > .libPaths("/Library/Frameworks/R.Framework/Packages") > remove.packages(c("Rcpp", "RcppArmadillo")) Removing packages from ‘/Library/Frameworks/R.framework/Packages’ (as ‘lib’ is unspecified) > install.packages(c("Rcpp", "RcppArmadillo"), type = "source") Installing packages into ‘/Library/Frameworks/R.framework/Packages’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_1.0.5.tar.gz' Content type 'application/x-gzip' length 2950521 bytes (2.8 MB) ================================================== downloaded 2.8 MB trying URL 'https://cran.rstudio.com/src/contrib/RcppArmadillo_0.9.900.2.0.tar.gz' Content type 'application/x-gzip' length 1645254 bytes (1.6 MB) ================================================== downloaded 1.6 MB * installing *source* package ‘Rcpp’ ... ** package ‘Rcpp’ successfully unpacked and MD5 sums checked ** using staged installation ** libs clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fPIC -Wall -g -O2 -c api.cpp -o api.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fPIC -Wall -g -O2 -c attributes.cpp -o attributes.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fPIC -Wall -g -O2 -c barrier.cpp -o barrier.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fPIC -Wall -g -O2 -c date.cpp -o date.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fPIC -Wall -g -O2 -c module.cpp -o module.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fPIC -Wall -g -O2 -c rcpp_init.cpp -o rcpp_init.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o Rcpp.so api.o attributes.o barrier.o date.o module.o rcpp_init.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation installing to /Library/Frameworks/R.framework/Packages/00LOCK-Rcpp/00new/Rcpp/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (Rcpp) * installing *source* package ‘RcppArmadillo’ ... ** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked ** using staged installation checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether clang++ -mmacosx-version-min=10.13 -std=gnu++11 accepts -g... yes checking how to run the C++ preprocessor... clang++ -mmacosx-version-min=10.13 -std=gnu++11 -E checking whether we are using the GNU C++ compiler... (cached) yes checking whether clang++ -mmacosx-version-min=10.13 -std=gnu++11 accepts -g... (cached) yes checking whether we have a suitable tempdir... /var/folders/p5/tkdpnffs2_g5ybr2t1yq1nd0rq_9pt/T checking whether R CMD SHLIB can already compile programs using OpenMP... no checking whether g++ version is sufficient... almost configure: WARNING: Compiler self-identifies as being compliant with GNUC extensions but is not g++. checking for macOS... found checking for macOS Apple compiler... not found checking for clang compiler... found checking for OpenMP compatible version of clang... not found configure: WARNING: OpenMP unavailable and turned off. checking LAPACK_LIBS... R-supplied partial LAPACK found configure: WARNING: Some complex-valued LAPACK functions may not be available configure: creating ./config.status config.status: creating inst/include/RcppArmadilloConfigGenerated.h config.status: creating src/Makevars ** libs clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Packages/Rcpp/include' -I/usr/local/include -I../inst/include -fPIC -Wall -g -O2 -c RcppArmadillo.cpp -o RcppArmadillo.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Packages/Rcpp/include' -I/usr/local/include -I../inst/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Packages/Rcpp/include' -I/usr/local/include -I../inst/include -fPIC -Wall -g -O2 -c fastLm.cpp -o fastLm.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o RcppArmadillo.so RcppArmadillo.o RcppExports.o fastLm.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation installing to /Library/Frameworks/R.framework/Packages/00LOCK-RcppArmadillo/00new/RcppArmadillo/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (RcppArmadillo) The downloaded source packages are in ‘/private/var/folders/p5/tkdpnffs2_g5ybr2t1yq1nd0rq_9pt/T/Rtmp3PiDrA/downloaded_packages’ > Rcpp::evalCpp("1 + 1", verbose = TRUE) Generated code for function definition: -------------------------------------------------------- #include using namespace Rcpp; // [[Rcpp::export]] SEXP get_value(){ return wrap( 1 + 1 ) ; } Generated extern "C" functions -------------------------------------------------------- #include // get_value SEXP get_value(); RcppExport SEXP sourceCpp_1_get_value() { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; rcpp_result_gen = Rcpp::wrap(get_value()); return rcpp_result_gen; END_RCPP } Generated R functions ------------------------------------------------------- `.sourceCpp_1_DLLInfo` <- dyn.load('/private/var/folders/p5/tkdpnffs2_g5ybr2t1yq1nd0rq_9pt/T/Rtmp3PiDrA/sourceCpp-x86_64-apple-darwin17.0-1.0.5/sourcecpp_275a2a9c550c/sourceCpp_2.so') get_value <- Rcpp:::sourceCppFunction(function() {}, FALSE, `.sourceCpp_1_DLLInfo`, 'sourceCpp_1_get_value') rm(`.sourceCpp_1_DLLInfo`) Building shared library -------------------------------------------------------- DIR: /private/var/folders/p5/tkdpnffs2_g5ybr2t1yq1nd0rq_9pt/T/Rtmp3PiDrA/sourceCpp-x86_64-apple-darwin17.0-1.0.5/sourcecpp_275a2a9c550c /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB -o 'sourceCpp_2.so' 'file275a5799aeb2.cpp' clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Packages/Rcpp/include" -I"/private/var/folders/p5/tkdpnffs2_g5ybr2t1yq1nd0rq_9pt/T/Rtmp3PiDrA/sourceCpp-x86_64-apple-darwin17.0-1.0.5" -I/usr/local/include -fPIC -Wall -g -O2 -c file275a5799aeb2.cpp -o file275a5799aeb2.o clang++ -mmacosx-version-min=10.13 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o sourceCpp_2.so file275a5799aeb2.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation [1] 2 > Rcpp::sourceCpp('/Users/itpetersen/Desktop/helloworld.cpp', verbose = TRUE) Generated extern "C" functions -------------------------------------------------------- #include Generated R functions ------------------------------------------------------- `.sourceCpp_3_DLLInfo` <- dyn.load('/private/var/folders/p5/tkdpnffs2_g5ybr2t1yq1nd0rq_9pt/T/Rtmp3PiDrA/sourceCpp-x86_64-apple-darwin17.0-1.0.5/sourcecpp_275a7d939cae/sourceCpp_4.so') rm(`.sourceCpp_3_DLLInfo`) Building shared library -------------------------------------------------------- DIR: /private/var/folders/p5/tkdpnffs2_g5ybr2t1yq1nd0rq_9pt/T/Rtmp3PiDrA/sourceCpp-x86_64-apple-darwin17.0-1.0.5/sourcecpp_275a7d939cae /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB -o 'sourceCpp_4.so' 'helloworld.cpp' clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Packages/Rcpp/include" -I"/Users/itpetersen/Desktop" -I/usr/local/include -fPIC -Wall -g -O2 -c helloworld.cpp -o helloworld.o helloworld.cpp:1:10: fatal error: 'RcppArmadillo.h' file not found #include ^~~~~~~~~~~~~~~~~ 1 error generated. make: *** [helloworld.o] Error 1 Error in Rcpp::sourceCpp("/Users/itpetersen/Desktop/helloworld.cpp", verbose = TRUE) : Error 1 occurred building shared library. > sessionInfo() R version 4.0.2 (2020-06-22) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.6 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.0.2 tools_4.0.2 Rcpp_1.0.5