我一直在尝试更新R版本的最新版本。我使用了R包installr提供的installr。我试着从R console和Rstudio运行它。然而,我得到了如下相同的信息。重新启动R表明R版本仍然是旧版本。
> 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发布于 2017-06-13 15:46:00
好的,可能的解决办法是:
在我的例子中,我以前在不同的目录中安装了R,并且使用相同的目录让R工作。
因此,我们可以尝试以下解决方案:
安装更新后的R版设置完毕。您可以打开Rstudio并按照以下步骤操作:
从Rstudio更新R的代码:
# 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:
https://stackoverflow.com/questions/38043547
复制相似问题