Entering edit mode
3.4 years ago
Kira
•
0
My Rstudio version is
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
and I want to update it to the latest version by using updateR in installr package. It shows the installation status is False and I don't know where to set the keep_install_file = TRUE
Installation status: FALSE . Removing the file:
C:\Users\User\AppData\Local\Temp\Rtmp4a7m3C/R-4.1.0-win.exe
(In the future, you may keep the file by setting keep_install_file=TRUE)
[1] FALSE
Warning message:
In shell(install_cmd, wait = wait, ...) :
'C:\Users\User\AppData\Local\Temp\Rtmp4a7m3C/R-4.1.0-win.exe' execution failed with error code 127
I tried this again in RGui and it shows the same thing
Installation status: FALSE . Removing the file:
C:\Users\User\AppData\Local\Temp\RtmpA5uZvV/R-4.1.0-win.exe
(In the future, you may keep the file by setting keep_install_file=TRUE)
[1] FALSE
Warning message:
In shell(install_cmd, wait = wait, ...) :
'C:\Users\User\AppData\Local\Temp\RtmpA5uZvV/R-4.1.0-win.exe' execution failed with error code 127
Did anyone one know where the problem is? Thanks in advance
Why not just install it normally (via the executable) and remove/change to the new version in RStudio?
because I've got lots of old packages and it will takes lots of time to install it back again
You can just copy the packages over to the new library location. Personally, I feel it's easier to reinstall most packages to avoid warnings about them being built under different versions, etc. Just let them update over lunch. Given that lots of packages on Windows are already built prior to distribution, you're actually at a bit of an advantage - they take a lot longer to install from source.
ok, I'll try it. Thank you for your answer
I recommend to look into https://rstudio.github.io/renv/articles/renv.html and learn how to make a snapshot of your current packages. This would (regardless of this specific issue now, it is a general advise) at all time allow to install whatever the current package landscape was.
As this is on Windows, could be permissions to exec/write files for a running program, it's better to download the install EXE from R website, close all R/RStudio sessions and run the installer, however, that could reset any configuration in you current install