There is no help I can find on how to upgrade R from 4.0 to 4.2 on DO Ubuntu 20.04? The important thing is my existing code and packages should not break. What is a good approach?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @sanjmeh,
There is never a 100% guarantee something won’t break when you update your server. Having said that, what could help is creating a backup prior to beginning the process. That way you can always revert back to a previous state. For this, I’ll recommend using the Snapshot product:
https://docs.digitalocean.com/products/images/snapshots/
As for the upgrade, you can try the following:
If there are any problems you can’t solve after the update, you can now always revert back to the previous option with the Snapshot image you created.
Hi there,
There can’t really be any guarantees if your code will work with the newer version of R. What I would suggest is to make sure to take a backup of your Droplet before proceeding with the upgrade:
https://docs.digitalocean.com/products/images/backups/
That way you can revert to a working version in case that anything goes wrong.
Regarding the upgrade itself, I could suggest following the official R installation guide:
Best,
Bobby
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now