Once you have installed R and RStudio, it’s easy to install R Packages.
What is R Package?
An R package is a basic unit for sharing code. A package (libraries) bundles together code, data, documentation, and tests, and is easy to share with others.
There are thousands of user-created R packages (libraries) in CRAN.
How to install R packages?
The R packages are the tools that make your tasks easy. To install R packages, you can follow the methods given below.
Method 1: Install R packages with code
i. First, go to Start menu and open RStudio.
ii. In Rstudio console, enter the following codes:
install.packages(c("tidyverse", "readxl", "flexdashboard", "rmarkdown", "highcharter"))
Method 2: Install from R packages from Tab
First, copy/paste the packages name and click install.
tidyverse, readxl, flexdashboard, rmarkdown