Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Change the Version of R in RStudio

Tags:

version

r

rstudio

My RStudio (V 0.99.491) is inept to change the R Version. I act in the ordinary way through Global Options --> R-Version. Afterwards it hangs and doesn't work or react any more. The initial version of R which works fine is R 3.1.0. I have never had such a problem before. Maybe someone has faced with a similar problem.

I tried to uninstall RStudio, and install it again, but this hasn't help to fix the issue.

like image 432
And_R Avatar asked Feb 08 '16 17:02

And_R


People also ask

How do I change R version in RStudio?

You can select different versions of R by selecting it from the drop down list at the top of the browser window. The drop down menu will allow you to select the version of R you want to use. When you switch versions, the system will ask if you want to save your workspace before restarting your session.

How do I set R version?

In the R terminal, type R. version . It's R. version .

Which R version is RStudio using?

The RStudio IDE requires R version 3.0.

Do I need to uninstall R before installing new version?

No need to uninstall. You can download and install the new version of R Studio with no issues.

How to update R on RStudio?

3 Solutions to update R on RStudio. Solution 1) Manually install (Recommended if you don't care about the old packages) The first method is to download a new version of R from R website > CRAN. Then restart your RStudio. The new R version will be loaded automatically.

Why can’t i update to a different version of R?

RStudio and R cannot update on their own because some packages may not work after switching to the new version (You can still downgrade R version in RStudio if something went wrong though). After you install the new version, the previously installed packages will not go to next version. So it is required extra procedures to move the packages.

How is version selection handled on the RStudio IDE?

The way this occurs varies between platforms—this article covers how version selection is handled on each platform. On Windows, the RStudio IDE uses the system's current version of R by default.

Where can I find the latest version of R?

I've installed the latest version of R (4.1.1) from source and it's located in /opt/R. The current version that is being used by RStudio is located in /usr/lib64/R (according to R.home () command).


1 Answers

I have had the same problem. Using my user account RStudio hangs up trying to change the version. All other accounts work fine.

I have located the problem in the folder C:\Users\myaccount\AppData\Roaming\RStudio\ and renamed this folder. After this everything worked fine.

I assume the problem was the file "desktop.ini.lock", because in the new folder RStudio generated, this file is missing.

like image 95
user6034358 Avatar answered Oct 16 '22 16:10

user6034358