r - 为什么控制台和终端中的 R 版本不同

标签 r ubuntu rstudio

我打开 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/

相关文章:

r - Rstudio 是否将 '.Rproj.user' 和 '.Ruserdata' 放入 '.gitignore' 中?

r - 使用Shiny和RStudio导入数据

c++ - 如何为 Linux C++ 应用程序获取 timespec_add_safe()

linux - Ubuntu 14.04 上的多系统

RStudio 在启动时找不到我的库

r - R中列数可变的排序矩阵

r - R中的多数票

r - 在data.table中拆分字符串并转换为长格式的快速方法

r - 如何制作只对特定区域着色的等高线图?

c++ - Opencv 断言因暗网而失败