In preparation for the upcoming release of R 3.0.0, a new release 0.9 of installr is now on CRAN.
The package can be installed and loaded using:
# installing/loading the package:
if(!require(installr)) {
install.packages("installr"); require(installr)} #load / install+load installr
The new version includes various bug fixes (as can be seen in the NEWS file) and new functions and features. The most user visible feature is that from now on, whenever loading installr in the Rgui, it will add a new menu-bar for updating your R version (the menu is removed when the package is detached).
When choosing to update R, a new GUI based system will guide you step by step through the updating process. It will first check if a newer version of R is available, if so, it will offer to show the latest NEWS of that release, download and install the new version, and copy/move your packages from the previous library folder, to the one in the new installation. If you have a global library folder, you can simply stop the updating once your new R is installed, and continue as you would otherwise (in the future, I intend to update the package to also allow it to deal with people using a global library folder).
(for using {installr} to update R through R terminal, see my previous post: Updating R from R (on Windows) – using the {installr} package)
Another new feature is the “installr()” function (which can also be run through the menubar), running it will open a window with a list of software you can download and install using the installr package (From Rtools and RStudio to pandoc and MikTeX).
I hope you’ll enjoy this new release, and as always – please let me know in the comments (or via e-mail) if you come across any bugs or have suggestions for new features.
Possible to update Rstudio from inside Rstudio using installr()?
Upon attempt, error encountered below with EXE file gone after exiting Rstudio:
C:Windowssystem32cmd.exe /c C:UsersmyIDAppDataLocalTempRtmp44gOrA/RStudio-0.97.336.exe
Hi Testing,
You can still use installr for updating RStudio using the following code:
require(installr)
install.RStudio(keep_install_file=TRUE)
However, you will need to erase the installation file on your own once the process is done.
I will write to myself to add a feature doing this if a user is updating RStudio from RStudio – thank you 🙂
Cheers,
Tal