Install png on yosemite & RRO - r

I am trying to install the package png on a macbookpro 2014 & yosemite.
I am using RRO (but I believe I would have a similar issue with R).
This is what I can see on the RRO console:
* installing *source* package ‘png’ ...
** package ‘png’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include `libpng-config --cflags` -fPIC -Wall -mtune=core2 -g -O2 -c read.c -o read.o
/bin/sh: libpng-config: command not found
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include `libpng-config --cflags` -fPIC -Wall -mtune=core2 -g -O2 -c write.c -o write.o
/bin/sh: libpng-config: command not found
/bin/sh: libpng-config: command not found
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o png.so read.o write.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
/bin/sh: libpng-config: command not found
installing to /Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so, 6): Symbol not found: _png_create_info_struct
Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so
Expected in: flat namespace
in /Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so
Error: loading failed
Execution halted
ERROR: loading failed
On the other hand I have installed (using homebrew) libpng and I can type libpng-config on the terminal having a response
Usage: /usr/local/bin/libpng-config [OPTION] ...
I am running out of options...

Related

Failed to install packages in R

I just started R. I am on a M1 BigSur Mac.
I have tried several packages, but I could not install anyone of them.
for example, swirl
> install.packages("swirl")
trying URL 'https://cran.rstudio.com/src/contrib/swirl_2.4.5.tar.gz'
Content type 'application/x-gzip' length 108847 bytes (106 KB)
==================================================
downloaded 106 KB
* installing *source* package ‘swirl’ ...
** package ‘swirl’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so':
dlopen(/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so, 6): no suitable image found. Did find:
/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so: mach-o, but wrong architecture
/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so: mach-o, but wrong architecture
Calls: <Anonymous> ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
Execution halted
ERROR: lazy loading failed for package ‘swirl’
* removing ‘/opt/homebrew/Cellar/r/4.1.0/lib/R/library/swirl’
Warning in install.packages :
installation of package ‘swirl’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/t6/qy2rcbdx0g9_fv98q1g48v_h0000gn/T/RtmpDAcI28/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
tidyverse it has been repeating the following output but it does not complete a proper installation.
* installing *source* package ‘cpp11’ ...
** package ‘cpp11’ successfully unpacked and MD5 sums checked
** using staged installation
** 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
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (cpp11)
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang++ -std=gnu++14 -I"/opt/homebrew/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I../inst/include/ -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c api.cpp -o api.o
clang++ -std=gnu++14 -I"/opt/homebrew/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I../inst/include/ -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c attributes.cpp -o attributes.o
clang++ -std=gnu++14 -I"/opt/homebrew/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I../inst/include/ -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c barrier.cpp -o barrier.o
clang++ -std=gnu++14 -I"/opt/homebrew/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I../inst/include/ -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c date.cpp -o date.o
clang++ -std=gnu++14 -I"/opt/homebrew/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I../inst/include/ -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c module.cpp -o module.o
clang++ -std=gnu++14 -I"/opt/homebrew/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I../inst/include/ -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c rcpp_init.cpp -o rcpp_init.o
clang++ -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/opt/homebrew/Cellar/r/4.1.0/lib/R/lib -L/opt/homebrew/opt/gettext/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/xz/lib -L/opt/homebrew/lib -o Rcpp.so api.o attributes.o barrier.o date.o module.o rcpp_init.o -L/opt/homebrew/Cellar/r/4.1.0/lib/R/lib -lR -lintl -Wl,-framework -Wl,CoreFoundation
I tried install.package('swirl', type='mac.binary').
It forces a successful installation but it gives the following error when I call library("swirl"):
Error: package or namespace load failed for ‘swirl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so':
dlopen(/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so, 6): no suitable image found. Did find:
/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so: mach-o, but wrong architecture
/opt/homebrew/Cellar/r/4.1.0/lib/R/library/stringi/libs/stringi.so: mach-o, but wrong architecture

R Packages downloaded in private since new R update on macOS

Since the new update of R on my Mac (version 11.2.2), I can't download any package.
Well, I can, but it is placed inside a "private" folder, while it's specified that it should be in my Library.
For instance, when I want to download 'mapsf' it gives me this error:
Installing package into ‘/Users/elifka/Library/R/3.6/library’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘mapsf’
Do you want to attempt to install these from sources? (Yes/no/cancel) y
installing the source package ‘mapsf’
trying URL 'http://cran.rstudio.com/src/contrib/mapsf_0.1.1.tar.gz'
Content type 'application/x-gzip' length 2904481 bytes (2.8 MB)
==================================================
downloaded 2.8 MB
* installing *source* package ‘mapsf’ ...
** package ‘mapsf’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c RcppExports.cpp -o RcppExports.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c init.c -o init.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c layout.cpp -o layout.o
clang++ -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -Wl,-rpath,/Library/Frameworks/R.framework/Resources/lib /Library/Frameworks/R.framework/Resources/lib/libc++abi.1.dylib -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o mapsf.so RcppExports.o init.o layout.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: framework not found CoreFoundation
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mapsf.so] Error 1
ERROR: compilation failed for package ‘mapsf’
* removing ‘/Users/elifka/Library/R/3.6/library/mapsf’
Warning in install.packages :
installation of package ‘mapsf’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/h3/vt0n6y2534b35ss3dzf_037m0000gn/T/RtmpV1gjTe/downloaded_packages’
I tried to put type='binary'in the install.packages() as it was suggested in another post, butit did not do the work.
I also tried to put 'no' for compilation and it did not work neither.
Cheers,
Ok so I fixed it by deleting R Studio and R and reinstalling both.
Deleting R Studio and R and reinstalling both worked form me too

Cannot properly install/load Rcpp

Trying desperately to load and work with Rcpp (well really I am trying to work in the package Seurat which needs Rcpp)
> library(Seurat)
Error: package or namespace load failed for ‘Seurat’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
In addition: Warning message:
package ‘Seurat’ was built under R version 4.0.2
> install.packages("Rcpp")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/Rcpp_1.0.5.tgz'
Content type 'application/x-gzip' length 3215939 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
The downloaded binary packages are in
/var/folders/hl/247qzpv55z99f6kgddn95kk80000gn/T//RtmpX3Ovqt/downloaded_packages
> library(Rcpp)
Error: package or namespace load failed for ‘Rcpp’ 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
In addition: Warning message:
package ‘Rcpp’ was built under R version 4.0.2
I have tried the following
restarting, reinstalling -> same errors
Making sure Xcode is installed (downloaded from app store)
Installed Command Line Tools from terminal with xcode-select --install
Installing from source
> install.packages("Rcpp", type = "source")
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
* 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/Versions/4.0/Resources/library/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)
The downloaded source packages are in
‘/private/var/folders/hl/247qzpv55z99f6kgddn95kk80000gn/T/RtmpX3Ovqt/downloaded_packages’
> library(Rcpp)
Error: package or namespace load failed for ‘Rcpp’ in get(Info[i, 1], envir = env):
lazy-load database '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/R/Rcpp.rdb' is corrupt
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
Can someone please advise?
Thanks!

tm package installation errors in R version 3.6.1 (2019-07-05) -- "Action of the Toes"

I am trying to work with tm package in R on my Macbook Pro (late 2011) running under macOS High Sierra Version 10.13.6. The tm package has been installed but when I load it, I receive the following error message
Error: package or namespace load failed for ‘tm’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘slam’
Then I tried to install slam and got this:
There is a binary version available but the source
version is later:
binary source needs_compilation
slam 0.1-45 0.1-46 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) y
installing the source package ‘slam’
trying URL 'https://cran.rstudio.com/src/contrib/slam_0.1-46.tar.gz'
Content type 'application/x-gzip' length 53515 bytes (52 KB)
==================================================
downloaded 52 KB
* installing *source* package ‘slam’ ...
** package ‘slam’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c apply.c -o apply.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c dll.c -o dll.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c grouped.c -o grouped.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c sparse.c -o sparse.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c util.c -o util.o
clang -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 slam.so apply.o dll.o grouped.o sparse.o util.o -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [slam.so] Error 1
ERROR: compilation failed for package ‘slam’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/slam’
Warning in install.packages :
installation of package ‘slam’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/zq/lzsw_rp15sj3wtfvb3r0kksc0000gn/T/RtmpX95gez/downloaded_packages’```
Can anyone please help me fix this?
Thanks!
I have come across exactly the same issue today. I'm running R 3.6.1 (as you are) on a Mac Book Pro using macOS Mojave (10.14.6), and I have the same error messages.
I tried some of the answers from here:
dependency ‘slam’ is not available when installing TM package
by trying:
install.packages("NLP", dependencies = TRUE)
install.packages("tm", dependencies = TRUE)
.....but no joy.
So I went to here:
https://cran.r-project.org/web/packages/slam/index.html
And downloaded slam_0.1-45.tgz to my Downloads folder
And then installed it directly from there, using:
install.packages("~/Downloads/slam_0.1-45.tgz", repos = NULL, type = .Platform$pkgType)
And it seems to now install the tm package fine.

R openair installation fails after upgrade to MRAN 3.4.1

I've been using the openair package on my mac with Rstudio and MRAN v 3.4 for some time with no problem. I recently upgraded to MRA v 3.4.1 and am now getting the following messages, that ultimately end in an error. Suggestions on how to fix appreciated.
> install_github('davidcarslaw/openair')
Downloading GitHub repo davidcarslaw/openair#master
from URL https://api.github.com/repos/davidcarslaw/openair/zipball/master
Installing openair
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
'/private/var/folders/bv/881_rsvd2kv83c13yywwc_xh0000gn/T/Rtmpz6778s/devtoolscf5234a1e7d/davidcarslaw-openair-b782399' \
--library='/Users/gcn/Library/R/3.4/library' --install-tests
* installing *source* package ‘openair’ ...
** libs
clang-omp++ -fopenmp -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I"/Users/gcn/Library/R/3.4/library/Rcpp/include" -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include -fPIC -g -O3 -Wall -pedantic -mtune=native -std=c++11 -c cluster.cpp -o cluster.o
clang-omp -fopenmp -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I"/Users/gcn/Library/R/3.4/library/Rcpp/include" -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include -fPIC -g -O3 -Wall -pedantic -mtune=native -std=gnu99 -c init.c -o init.o
init.c:26:2: warning: no newline at end of file [-Wnewline-eof]
}
^
1 warning generated.
clang-omp++ -fopenmp -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I"/Users/gcn/Library/R/3.4/library/Rcpp/include" -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include -fPIC -g -O3 -Wall -pedantic -mtune=native -std=c++11 -c rolling.cpp -o rolling.o
clang-omp++ -fopenmp -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/clang4/lib -o openair.so cluster.o init.o rolling.o -framework Accelerate -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
installing to /Users/gcn/Library/R/3.4/library/openair/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4.1-MRO/Resources/library/Matrix/libs/Matrix.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4.1-MRO/Resources/library/Matrix/libs/Matrix.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4.1-MRO/Resources/library/Matrix/libs/Matrix.so
Reason: image not found
ERROR: lazy loading failed for package ‘openair’
* removing ‘/Users/gcn/Library/R/3.4/library/openair’
Installation failed: Command failed (1)
This problem went away after I uninstalled all R versions and then installed MRAN version 3.4.2 when it came out. According to MRAN software support "You're right, it is a bug in MRO 3.4.1. Because MRO uses the Accelerate libraries for BLAS and LAPACK operations, it does not create the libRblas and libRlapack dylibs; binary packages that use those libraries are currently incompatible with MRO, but the default package type was set in MRO 3.4.1 to "macbinary-el-capitan". This has been changed in the upcoming MRO 3.4.2 back to the original "source". "

Resources