【发布时间】:2019-11-28 03:50:56
【问题描述】:
我打开了 RStudio 服务器,但是控制台中的 R 版本是 3.4.4,终端中的 R 版本是 3.6.1。如何在 Console 中更新 R 版本?
in Console:
> if (!requireNamespace("BiocManager", quietly = TRUE))
+ install.packages("BiocManager")
Installing package into ‘/home/jack/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘BiocManager’ is not available (for **R version 3.4.4**)
Error in readRDS(pfile) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
in Terminal:
(base) jack@omnisky:~$ R
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 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.
【问题讨论】:
-
你能说得具体点吗?(>▽
-
参见RStudio服务器手册中的“指定R版本”:support.rstudio.com/hc/en-us/articles/…升级R后是否重启了RStudio服务器?
-
我重启了Rstudio,它可以工作了,谢谢!