Installing R to a custom location (./configure --prefix=$HOME/RTargets/3.3). This goes fine, but install.packages('devtools') fails. The message is:
installing via 'install.libs.R' to /Users/me/Library/R/3.3/library/stringi
** 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 '/Users/me/Library/R/3.3/library/stringi/libs/stringi.so':
dlopen(/Users/me/Library/R/3.3/library/stringi/libs/stringi.so, 6): Library not loaded: libicui18n.58.dylib
Referenced from: /Users/me/Library/R/3.3/library/stringi/libs/stringi.so
Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/me/Library/R/3.3/library/stringi’
However, this file exists:
/usr/local/lib>ls -l libicui18n*
-rwxr-xr-x 1 eqiaz44 admin 2679892 Mar 2 23:50 libicui18n.58.1.dylib
lrwxr-xr-x 1 eqiaz44 admin 21 Nov 11 14:14 libicui18n.58.dylib -> libicui18n.58.1.dylib
lrwxr-xr-x 1 eqiaz44 admin 21 Nov 11 14:14 libicui18n.dylib -> libicui18n.58.1.dylib
I'm can't figure out why the loading process for the package can't find the dylib file given that it is in the default location. I can't check how the stringi.so file reference looks since it gets removed.
Is there a way to tell R to NOT remove files when an install fails or some reason why this would happen?