Question: how to download the latest version of r?
Answer: From within RStudio, go to Help > Check for Updates to install newer version of RStudio (if available, optional). To update packages, go to Tools > Check for Package Updates. If updates are available, select All (or just tidyverse), and click Install Updates.