RStudio and dplyr installation PROBLEM. macOS (Intel, BigSur 11.6)

Hello

Strange issue.

MacPro, macOS (Intel, BigSur v 11.6)
I installed proper versions of R (from the binary) and RStudio.

I can install dplyr. But when I run library(dplyr), I get this:

library(dplyr)
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.1/Resources/library/utf8/libs/utf8.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/utf8/libs/utf8.so, 6): no suitable image found. Did find:
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/utf8/libs/utf8.so: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/utf8/libs/utf8.so: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

I uninstalled both R and RStudio but nothing changed.
I manually cleaned old folders (after uninstall) - still the same problem.

It is very bizarre.

I have another MacPro (M1) and works perfectly.
I have admin rights for both notebooks.

Please, help!
Thanks!!

First thing to try is

install.packages("utf8")

YES!!! It worked!

A second huge help in 2 days!:slight_smile:

Thank you!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.