首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >updateR一直未能同时使用R控制台和Rstudio

updateR一直未能同时使用R控制台和Rstudio
EN

Stack Overflow用户
提问于 2016-06-26 21:53:39
回答 1查看 2.5K关注 0票数 4

我一直在尝试更新R版本的最新版本。我使用了R包installr提供的installr。我试着从R consoleRstudio运行它。然而,我得到了如下相同的信息。重新启动R表明R版本仍然是旧版本。

代码语言:javascript
复制
> updateR()
Installing the newest version of R,
please wait for the installer file to be download and executed.
Be sure to click 'next' as needed...
trying URL 'https://cran.rstudio.com/bin/windows/base/R-3.3.1-win.exe'
Content type 'application/x-msdos-program' length 73566547 bytes (70.2 Mb)
opened URL
downloaded 70.2 Mb


The file was downloaded succesfully into:
C:\Users\abcd\AppData\Local\Temp\RtmpOCjWpG/R-3.3.1-win.exe 

 Running the installer now...

 Installation status:  TRUE . Removing the file:
 C:\Users\abcd\AppData\Local\Temp\RtmpOCjWpG/R-3.3.1-win.exe 
 (In the future, you may keep the file by setting keep_install_file=TRUE) 

We can not seem to find the location if the new R you have installed.
The rest of the updating process is aborted, please take care to copy
your packages to the new R installation.
[1] TRUE
EN

回答 1

Stack Overflow用户

发布于 2017-06-13 15:46:00

好的,可能的解决办法是:

在我的例子中,我以前在不同的目录中安装了R,并且使用相同的目录让R工作。

因此,我们可以尝试以下解决方案:

安装更新后的R版设置完毕。您可以打开Rstudio并按照以下步骤操作:

从Rstudio更新R的代码:

代码语言:javascript
复制
    # installing/loading the package:
    if(!require(installr)) {
    install.packages("installr"); require(installr)} #load / install+load 
    installr

   # using the package:
     updateR() # this will start the updating process of your R installation.  It will check for newer versions, and if one is available, will guide you through the decisions you'd need to make.

安装步骤R:

  1. 点击“工具”。
  2. 选择“全局选项”。
  3. 在General选项卡下,查找R版本并单击"Change“
  4. 将出现“选择R安装”弹出,选择安装在计算机上的适当版本。
  5. 点击“确定”
  6. 关闭所有R实例,包括including。
  7. 现在打开R并在控制台中键入版本。希望这能解决你的问题。
票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38043547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档