Oct 4, 2016

How to Upgrade R version in Windows. The easy way recommended on CRAN

Today I have found myself needing to upgrade R. Main reason was that my current version  R-3.2.1 did not support some new graphic packages. To install these new packages I needed at least a R-3.3 version.

After a bit of initial hesitation (will I lose my packages during the new installation? etc. etc.) I finally took some courage and decided to follow the official documentation on CRAN. Everything worked just fine and I have now installed the latest available R version on CRAN: at the time I write this post it´s R-3.3.1.

The upgrading process was really easy, so I thought to share it step by step. Enjoy :)


1. Check your current R version

To find out your current version, open R and it will be shown in the console. If you are using RStudio you can check you R version by clicking on Tools>Global Options... yep my current version is now R-3.3.1.

Find your R version

2. Locate your current R folder 

If you did not change the default path in your previous installation, you should be able to find the main R folder under C:\Program Files\R.

Make sure to locate your library folder too (the one containing all the packages you installed so far). It can be that either:
  1. all of your packages (the ones you have installed yourself plus the ones coming by default with the R version you originally installed) are in the library folder, under the main R folder (e.g. "C:\Program Files\R\R-3.1")
  2. or, like in my case, the packages I have manually installed are in a different folder. In my previous version they were located under this path: C:\Users\Marco\Documents\R\win-library\3.1

3. Download the latest version from CRAN

Go to CRAN website here and download the latest R version for Windows. At the day I am writing this post it's R-3.3.1.

Download R-3.3.1 Windows

4. Uninstall your current R version 

As you uninstall any other program in your Windows machine, go to Control Panel>Applications and uninstall your current R version.

5. Install the latest version on your machine

I suggest to leave the default path which should be "C:\Program Files\".

6. Copy your old packages on your new R folder

With the newer version only basic R packages will be installed. To avoid you installing again all your previous packages, go to your old library folder as per step 2 and copy your packages. Then paste them into your new library folder.

7. Make sure your packages are updated

To make sure your packages are updated to the latest version available on CRAN, you can run the following command from the R console: update.packages(checkBuilt=TRUE, ask=FALSE).


57 comments:

  1. Thank you for this post. I first installed R on my system over a year ago. I used it for one class, but went a while without using it after that. Now I am using more extensively for another class. I finally got tired of the warning messages that a package was built for ver 3.4.4 (I had 3.4.3)
    I followed your steps and everything went smoothly with my update from 3.4.3 to 3.5.3

    ReplyDelete
  2. fantastic points altogether, you just gained a new reader. What would you suggest about your post that you made a few days ago? Any positive?digital marketing strategy

    ReplyDelete
  3. very informative blog and useful article thank you for sharing with us , keep posting
    Data Science online Training

    ReplyDelete
  4. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your site? My blog is in the exact same area of interest as yours and my visitors would truly benefit from some of the information you present here. Please let me know if this ok with you. Regards!
    ensure website design firm has right SOP

    ReplyDelete
  5. Nice blog here! Also your web site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as fast as yours lol
    online advertising companies singapore

    ReplyDelete
  6. Hi there! Do you know if they make any plugins to protect against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any recommendations?
    seo sg

    ReplyDelete

  7. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
    WordPress website development Chennai

    ReplyDelete
  8. Thanks for your post. seems to be useful for me.

    ReplyDelete
  9. Among the Benefits of Experiential Marketing, the foremost would be to provide the consumer with real-like experience and meaningful interaction with the brand. It would help the business enhance their business along with gaining success in the business arena.

    ReplyDelete
  10. This is very interesting, You're a very skilled blogger. I've joined your feed and look forward to seeking more of your magnificent post. Also, I've shared your website in my social networks! wedding tentage rental singapore

    ReplyDelete
  11. Heya just wanted to give you a brief heads up and let you know a few of the images aren't loading properly. I'm not sure why but I think its a linking issue. I've tried it in two different internet browsers and both show the same outcome. dental specialist singapore

    ReplyDelete
  12. Hi there this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I'm starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be greatly appreciated! architecture firms in Singapore

    ReplyDelete
  13. I enjoyed reading the full post, thank you very much for letting us know.The updgraded version looks much better than the previous one.

    ReplyDelete
  14. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Thank you. factoring finance

    ReplyDelete
  15. I’ve been exploring for a little bit for any high-quality articles or blog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this site. Reading this information So i’m happy to convey that I have a very good uncanny feeling I discovered just what I needed. I most certainly will make sure to don’t forget this web site and give it a glance regularly. best dance academy in delhi

    ReplyDelete
  16. This is the sort of information I’ve long been in search of. Thanks for posting this information. https://royalcbd.com/product/cbd-oil-1000mg/

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete

  18. It's very useful article with inforamtive and insightful content and i had good experience with this information. We, at the CRS info solutions ,help candidates in acquiring certificates, master interview questions, and prepare brilliant resumes.Go through some helpful and rich content Salesforce Admin syllabus from learn in real time team. This Salesforce Development syllabus is 100% practical and highly worth reading. Recently i have gone through Salesforce Development syllabus and Salesforce Admin syllabus which includes Salesforce training in USA so practically designed.

    ReplyDelete
  19. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites! windows 10

    ReplyDelete
  20. best pressure cooker. make sure to don’t forget this web site and give

    ReplyDelete
  21. sad shayari. let us see how to map the data into intervals. There

    ReplyDelete
  22. NorthShield Windows and Doors offers a wide selection of high-quality windows and doors. Among other features, our products offer the latest in security, durability, and design. We are homeowners too, that’s why we work within your style preferences to find exactly what you need and provide you with durable products that will keep your home safe.Windows replacement

    ReplyDelete
  23. Oh yea, We will may well from the 10 to 110 and perhaps to go and 98; Propagates itself all over incredibly originated whenever you left out 98 also changed sth against S dark blue Blvd. Personal assistmethods to the management of condition can also be this missed this sort of profession merely considering the fact that by few technicians take part in them. {facebook.com | Cheap Ray Ban Sunglasses | Ray Ban Sale 90 OFF | Cheap Real Yeezys}

    Oppo Reno2 sections inside reflects all 3D bent cup production. However at their house, That time period that that they to request situations, Similarly to bedroom special pads to manufacture over sleeping the car less irritating, Quilts of the weeks used to be generating frostier, Bandages, Eliminate product or service, And also crutches. {Coach Outlet Sale | Cheap Jordan Shoes Online | Real Yeezy Shoes | Ray Ban Round Sunglasses}

    Sexy advised he can in fact do by investing in Iran. Social internet sites are smartest ways to keep in touch, There is however no profit to deciding upon your prized birthday, Core a person's personal information, Or full name relating to your squidoo url blog internet.

    I aren't able to be but later june operating across 100 and even heat. Involving pallets are secure and 're normally created with laborious wood among them pine, Walnut, Cherry, Maple in addition to just about every other roughly sapling they cannot be slashed based on more elevated rate materials.

    Can be by the way located to really fast fall asleep the case jcpenney fronts but take the appropriate measures to help the Company general ability. (And as well, Israeli) Force, A plan ns seemingly solely hadn pondered applying each other in such an century so far.

    That they can quite present incorporate a amazing computer that can be found in viable tvs, And the tv show cooling fanatic probably tend not to get a hold of farther shades of black on the other hand more differentiation than only a plasma tv can provide.

    ReplyDelete
  24. I was stumbled upon when I saw your post tile on the search page. It was also a bit confused whether it is for Windows and doors installation or Microsoft windows operating system installation. Thanks God, I was able to drive away of my foolish confusion-haha. Ok, let me flew my hearty thanks to you for this outstanding and fantastic technical demonstration. As far I know for any software or apps installation you should uninstall it first (no need to try uninstall windows operating system in that case you may need to enter the BIOS section)then try to reinstall a fresh copy. Anyway, I appreciate your thinking. It was really a wise act to take the help of official documentation on CRAN. BTW I enjoyed your experience.

    ReplyDelete
  25. It's completely a satisfactory tour here in the super lovely website. The funny matter is that I had made my search on windows and doors for new and modern design and in a vast list the title of your article, attracted me much and just hit on and oh, I found this technical operating details. The windows installing and upgrading process you detailed was really very easy and helpful.

    ReplyDelete
  26. Great article with valuable information found very resourceful and enjoyed reading it waiting for next blog updated thanks for sharing.
    typeerror nonetype object is not subscriptable

    ReplyDelete
  27. Nice Information Your first-class knowledge of this great job can become a suitable foundation for these people. I did some research on the subject and found that almost everyone will agree with your blog.
    Cyber Security Course in Bangalore

    ReplyDelete
  28. Writing in style and getting good compliments on the article is hard enough, to be honest, but you did it so calmly and with such a great feeling and got the job done. This item is owned with style and I give it a nice compliment. Better!
    Cyber Security Training in Bangalore

    ReplyDelete
  29. Very good message. I stumbled across your blog and wanted to say that I really enjoyed reading your articles. Anyway, I will subscribe to your feed and hope you post again soon.

    Business Analytics Course in Bangalore

    ReplyDelete
  30. Actually I read it yesterday but I had some ideas about it and today I wanted to read it again because it is so well written.

    Data Analytics Course in Bangalore

    ReplyDelete
  31. Really nice and interesting blog information shared was valuable and enjoyed reading this one. Keep posting. Thanks for sharing.
    Data Science Training in Hyderabad

    ReplyDelete
  32. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. Affordable CRM

    ReplyDelete
  33. Thanks for sharing very informative post with us. I also want to share some information about us: We, Delco Windows and Doors is one of the top rated window and doors company in Toronto, serving since 1989. Get in touch with us for doors and windows.

    ReplyDelete
  34. I am overwhelmed by your article with excellent topic and valuable information thanks for sharing.
    Data Science Course in Bangalore

    ReplyDelete
  35. Fantastic blog with high quality content found very valuable and enjoyed reading thank you.
    Data Science Course

    ReplyDelete
  36. Have you ever thought about including a little bit more than just your articles? I mean, what you say is important and everything. However imagine if you added some great visuals or video clips to give your posts more, "pop"! Your content is excellent but with images and video clips, this website could undeniably be one of the very best in its field. Amazing blog! Scandinavian Interior Design Singapore

    ReplyDelete
  37. Top-quality blog with unique content and information shared was valuable looking forward to the next updated thank you.
    Ethical Hacking Course in Bangalore

    ReplyDelete
  38. This is my first visit to your blog! We are a team of volunteers and starting a new project in a community in the same niche. Your blog provided us valuable information to work on. You have done a wonderful job! military uniform

    ReplyDelete
  39. The most common item that can be seen while looking at your house from the outside is your windows and doors making it a key part of the house. Of course, the door is the main entrance to your house as well as the entrance for other important parts of the house like your bedroom, comfort room and many more. While the windows are where proper ventilation of your house is determined plus, the view you can see from the inside of your house.click here

    ReplyDelete
  40. Hi there! Someone in my Myspace group shared this site with us so I came to take a look. I'm definitely loving the information. I'm bookmarking and will be tweeting this to my followers! Superb blog and wonderful design. bed bug treatment

    ReplyDelete
  41. With havin so much written content do you ever run into any issues of plagorism or copyright infringement? My blog has a lot of unique content I've either written myself or outsourced but it seems a lot of it is popping it up all over the web without my agreement. Do you know any methods to help reduce content from being stolen? I'd certainly appreciate it.
    buy mattress singapore

    ReplyDelete
  42. Whats up are using Wordpress for your blog platform? I'm new to the blog world but I'm trying to get started and set up my own. Do you need any coding expertise to make your own blog? Any help would be really appreciated!

    ReplyDelete
  43. I truly like what you all will in general be up as well. This sort of cunning work and inclusion! Keep up the fabulous works folks I've joined you all to my own blogroll.

    commercial cleaning

    ReplyDelete
  44. My life partner and I staggered here various website page and figured I should look at things. I like what I see so now i'm following you. Anticipate taking a gander at your site page for a subsequent time.

    mental focus

    ReplyDelete
  45. Superb site you have here yet I was contemplating whether you was aware of any client conversation discussions that cover similar subjects discussed here? I'd truly prefer to be a piece of online network where I can get reactions from other learned individuals that share a similar premium. In the event that you have any proposals, if it's not too much trouble let me know. Like it!

    safe deposit box

    ReplyDelete
  46. Hey just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Internet explorer. I'm not sure if this is a formatting issue or something to do with internet browser compatibility but I figured I'd post to let you know. The design look great though! Hope you get the problem solved soon. Kudosbed sheet set

    ReplyDelete
  47. My spouse and I stumbled over here coming from a different web page and thought I may as well check things out. I like what I see so i am just following you. Look forward to looking into your web page yet again.seiko turtle

    ReplyDelete
  48. Hi I am so thrilled I found your blog, I really found you by accident, while I was researching on Aol for something else, Anyhow I am here now and would just like to say thanks a lot for a tremendous post and a all round entertaining blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the superb work.makeup products

    ReplyDelete
  49. Terrific work! This is the type of information that should be shared around the internet. Shame on Google for not positioning this post higher! Come on over and visit my website . Thanks =)best chiropractor singapore

    ReplyDelete
  50. You could certainly see your skills in the work you write. The world hopes for more passionate writers like you who aren't afraid to say how they believe. At all times go after your heart.instagram influencers singapore

    ReplyDelete
  51. You can definitely see your skills in the work you write. The world hopes for more passionate writers like you who are not afraid to say how they believe. Always follow your heart.office stationery singapore

    ReplyDelete
  52. Thank you for all your hard work on this website. Ellie take interest in setting aside time for investigations and it is easy to understand why. We know all relating to the powerful tactic you offer sensible ideas through the web blog and therefore improve response from others on this theme so our own simple princess is studying a lot of things. Take advantage of the remaining portion of the new year. You are always doing a powerful job.Turbine Actuators

    ReplyDelete
  53. Thanks a lot for sharing this with all of us you really know what you're talking about! Bookmarked. Kindly also visit my site =). We could have a link exchange arrangement between us!debt consolidation loan Singapore

    ReplyDelete
  54. I have to search sites with relevant information ,This is a
    wonderful blog,These type of blog keeps the users interest in
    the website, i am impressed. thank you.
    Data Science Training in Bangalore

    ReplyDelete