我打开 RStudio 服务器,但控制台中的 R 版本是 3.4.4,终端中的 R 版本是 3.6.1。如何在控制台中更新 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-server restart
谢谢大家的帮助。
关于r - 为什么控制台和终端中的 R 版本不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57107578/