Rstudio-server更改R版本

1. rsession-which-r

 https://docs.rstudio.com/ide/server-pro/r-sessions.html

rsession-which-r=/usr/local/bin/R

  更改R的位置

2.多版本R的安装

 https://docs.rstudio.com/resources/install-r/

3.重启

https://www.jianshu.com/p/20cbecc83408,一定要有sudo

sudo rstudio-server restart             #重启RStudio-server

刷新8787链接,查看R的版本:

已经升级了。

4.更改

http://xuzhougeng.top/archives/Using-different-R-version-in-RStudion-linux-macOS

原文地址:https://www.cnblogs.com/BlueBlueSea/p/13348003.html