Reputation: 231
I installed R Studio desktop in my MacBook air running on Big Sur. Unfortunately, it cannot run due to the error below:
Error reading R script (),system error 2 (No such file or directory); Unable to find libR.dylib in expected locationswithin R Home directory /Library/Frameworks/R.framework/Resources
Upvotes: 23
Views: 28345
Reputation: 936
To add to all above info, with recent releases of MacOS we will have to install XQuartz before installing R. After these installations, proceed with RStudio installation.
Upvotes: 1
Reputation: 378
You have probably installed Rstudio
before installing R
. What you can do is to first install R using brew install R
and then reinstalling Rstudio using brew reinstall rstudio
.
Upvotes: 9
Reputation: 19431
A similar question was asked on the R Studio community.
You need to first download base R:
R-4.1.0.pkg
.Then download R Studio for MacOS from here.
Upvotes: 10