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
I would recommend restarting your machine, and if the issue persists, remove RStudio, then reinstall RStudio and R using the instructions from Chapter 1 Getting Started with Data in R | Statistical Inference via Data Science. This topic was automatically closed 21 days after the last reply.
Start R by double-clicking on the program in your Applications folder, or in the Dock, if you put it there. The R graphical user interface (GUI) will open, containing a single window called the console window. The greater-than sign ( > ) is R's "prompt;" it indicates that R is ready for you to enter commands.
Running brew install R
solves the problem for me.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With