The downloaded binary packages are in
/var/folders/0k/bn4j3rz148g0c5ddh2b0hvwc0000gn/T//RtmpXeoqF9/downloaded_packages
Then I try to install the library because I didn't realize there was an issue
library(pgirmess)
Error: package or namespace load failed for ‘pgirmess’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘expm’
I try installing 'expm'
install.packages('expm')
There is a binary version available but the source version is later:
binary source needs_compilation
expm 0.999-3 0.999-4 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel)
removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/expm’
Warning in install.packages :
installation of package ‘expm’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/0k/bn4j3rz148g0c5ddh2b0hvwc0000gn/T/RtmpXeoqF9/downloaded_packages’
Apparently you have some problems with your gcc compiler, fixing this could be a little tricky and is very system specific, so if you don't need the latest version right now, you can just install the binary version with