What would be the best way to update R and RStudio in Windows?

I have several packages installed in the installed R version and some projects declared in Rstudio. There is a new version for both.
I would like to know what is the best way to update in Windows 7.

1 Like

I'm not sure of the best way to update RStudio. However, I love using the installr package. The updateR() function makes it very simple to update and move packages to the correct version.

1 Like

I use installr as well, but I don't think it works with RStudio. Am I wrong?

It doesn't update RStudio, if that's what you mean.

I need your guidance.
I show you the results I get when I run the installr or updateR functions

?  updateR() 
Error in .helpForCall(topicExpr, parent.frame()) : 
  no methods for ‘updateR’ and no documentation for it as a function
> ?  updateR
No documentation for ‘updateR’ in specified packages and libraries:
you could try ‘??updateR’

> ?installr
No documentation for ‘installr’ in specified packages and libraries:
you could try ‘??installr’
> updateR()
Error in updateR() : could not find function "updateR"

Try this code:




you can't use installr inside of RStudio. You need to either use it from the command line or from R itself


Following the instructions exposed here perform the update of R. After that executing the new version of RStudio, which uninstalled the old version, and installed and maintained everything as it was in the old version, including the list of projects in the menu poject.

> version; RStudio.Version()
platform       i386-w64-mingw32            
arch           i386                        
os             mingw32                     
system         i386, mingw32               
major          3                           
minor          5.0                         
year           2018                        
month          04                          
day            23                          
svn rev        74626                       
language       R                           
version.string R version 3.5.0 (2018-04-23)
nickname       Joy in Playing              

To cite RStudio in publications use:

  RStudio Team (2016). RStudio: Integrated Development for R. RStudio, Inc., Boston, MA
  URL http://www.rstudio.com/.

A BibTeX entry for LaTeX users is

    title = {RStudio: Integrated Development Environment for R},
    author = {{RStudio Team}},
    organization = {RStudio, Inc.},
    address = {Boston, MA},
    year = {2016},
    url = {http://www.rstudio.com/},

[1] "desktop"

[1] ‘1.1.447’

2 posts were split to a new topic: Working with updateR(): "Error in loadNamespace ... there is no package called ‘stringi’"