Skip to content

R 4.4 crashes loading dplyr

3 messages · Carl Witthoft, Peter Dalgaard

#
I apologize if the file posted below is the wrong log.
I start up R 4.4.0 on my iMac 13.5.2   , type 'library(dplyr)' and r.app
gui  crashes immediately. Same for ggplot2, gert, stringr,  and others .

 I have verified that I've updated every R library in my system.  I can
successfully load other libs, e.g.,  Rmpfr,knitr, MASS, so I doubt it's a
directory or permissions problem.
#
Hmm, worx4me. At least from a fresh source build.

I am suspicious of the "4.2" in a number of entries in your log, e.g. 

 {
   "source" : "P",
   "arch" : "x86_64",
   "base" : 5029900288,
   "size" : 3260416,
   "uuid" : "c3e6d895-7059-3865-aa61-a941ea1c4569",
   "path" :
"\/Library\/Frameworks\/R.framework\/Versions\/4.2\/Resources\/lib\/libR.dylib",

   "name" : "libR.dylib"
 },

which suggests that you may be mixing incompatible binaries. Do you have an older private library on your search path? That has bitten me at some point.


- pd.

  
    
#
Thanks, Peter!   The funny thing is that I had kept R 4.2 around in the
Frameworks directory, but didn't expect a new installation of R4.4 to
choose that path for libs.  I removed R4.2 , then reinstalled R4.4 and now
the correct libs are invoked.  I guess some config macro file must have
remained in the list of startup items.
FWIW,  after removing R4.2 but before reinstalling R4.4,   I tried
'library(dplyr)'  , which didn't crash but failed with the error msgs shown
here.
Error: package or namespace load failed for ?dplyr? in dyn.load(file,
DLLpath = DLLpath, ...):
 unable to load shared object
'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/magrittr/libs/magrittr.so':

dlopen(/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/magrittr/libs/magrittr.so,
0x0006): Library not loaded:
/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libR.dylib
  Referenced from: <B6E9C258-16F0-31E8-AF63-50207542C35F>
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/magrittr/libs/magrittr.so
  Reason: tried:
'/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libR.dylib' (no
such file),
'/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libR.dylib'
(no such file),
'/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libR.dylib' (no
such file), '/usr/local/lib/libR.dylib' (no such file),
'/usr/lib/libR.dylib' (no such file, not in dyld cac

regards,
Carl
On Tue, Apr 30, 2024 at 4:48?AM peter dalgaard <pdalgd at gmail.com> wrote: