Updating path in linux
Note: A Bootable DSU ISO can be made using the Windows version of DSU.
If you choose to download and install a newer version.
There's an option for copying/moving all of your packages from the current R installation to the newer R installation which is very handy.
dsu --apply-upgrades-only     To get the list of only upgradable components dsu --apply-downgrades-only     To get the list of only downgradable components dsu --apply-equivalent-updates     To get the list including equivalent components dsu --update-list= When the type is --destination-type=ISO : DSU runs in the interactive mode and the selected updates are delivered as a bootable ISO. When ISO if used along with --non-interactive : A bootable ISO is created. The repository location should be configured using --config= When the type is --destination-type=CBD : CBD is Custom Bootable DSU.
DSU runs in the interactive mode and provides the selected updates along with deployment script.
@agstudy has it right - you need to install the newer version of R, then restart RStudio and it will automagically use the new version, as @Brandon noted. R() function, analogous to the install.packages() function or the update.packages(function).