为什么我在RStudio Server中同时获得不同的R版本?

时间:2016-12-23 15:22:59

标签: r rstudio rstudio-server

所以,我在亚马逊的EC2上升级了旧的RStudio Server安装。第一步是升级RStudio Server。没问题。

第二步是升级R本身。 我将机器R安装升级到3.3.2。

编辑(评论后插入):我将R升级为sudo apt-get update && sudo apt-get upgrade。另请注意,命令行上的which R会显示/usr/bin/R/etc/rstudio/rserver.conf中有这一行; rsession-which-r=/usr/bin/R

当通过命令行启动R时,版本现在是3.3.2。但是当登录到RStudio Server"网页时#34;它在启动时说3.3.0(机器重启后)。见下面的转储。

所以,我试图解决这个问题,RStudio Server保持在3.3.0,而机器版本是3.3.2。我尝试了几天,直到我在RStudio Server中尝试了version命令才发现没有修复。它奇怪地回答了3.3.2。 其他人之前理解或看到过这种行为,它开始说R是一个版本,然后在使用version命令进行验证时实际上是一个不同的版本?我的RStudio Server实际上运行的是什么版本的R?

R version 3.3.0 (2016-05-03) -- "Supposedly Educational"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.


Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


[Workspace loaded from ~/.RData]

....其他警告,如CRAN镜像不是https等......

>version

platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          3.2                         
year           2016                        
month          10                          
day            31                          
svn rev        71607                       
language       R                           
version.string R version 3.3.2 (2016-10-31)
nickname       Sincere Pumpkin Patch       

0 个答案:

没有答案