Upgrading and loading packages

Hi, first, you need to read this - Differentiating R from RStudio.

Second, how to update R will depend on your OS (Windows, Mac, Linux). Searching on your favorite search engine with "Update R on " will bring up a lot of info on how to do it.