[R-SIG-Mac] R 4.4 crashes loading dplyr

Simon Urbanek @|mon@urb@nek @end|ng |rom R-project@org
Fri May 3 03:10:37 CEST 2024


Carl,

it shows that you apparently had some ancient version of magrittr installed way back from R 4.2.x. I have no idea why or how you got it, but update.packages(checkBuilt=TRUE) in R 4.4.0 should have fixed it.

Cheers,
Simon



> On 1/05/2024, at 12:32 AM, Carl Witthoft <cellocgw using gmail.com> wrote:
> 
> 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



More information about the R-SIG-Mac mailing list