update.packages()ĭoing so will prompt the system to ask your permission prior to the installation of the package. You can also update any out of date package with the help of the update.packages() function. Typing Install.packages(“ggplot2”) in the console will install the latest package of ggplot2. Install.packages() is used to install any package of CRAN. Updating RStudio is easy, go to Help > Check for Updates to install a newer version.ĭon’t forget to explore the RStudio Tutorial for Beginners 3. If there is, it will download and install it. Install.packages(“installr”) library(installr) # For installing & loading installrĪfter running the updateR(), R will detect if there is a new version available. If you don’t have installr package then first install it : #installing the latest installr package: On Mac and Ubuntu, you need to go to the CRAN website, to install the newer package installer.Ī package called installr, which is only for Windows can be used to ease the process. This will install the package you searched for or give you a list of matching packages based on your package text.
0 Comments
Leave a Reply. |