install.packages("package_name")
package name should be in quotes (single or double)
For Example:
#Install ggplot2 package
install.packages("ggplot2")
#Install tidyr package
install.packages("tidyr")
library(package_name) command#Load ggplot2 package
library(ggplot2)
#Load tidyr package
library(tidyr)
Files, Plots, Packages, Help, Viewer Pane which is at Bottom Right in RstudioPackagesInstallFor Example:
leafletNHANESFiles, Plots, Packages, Help, Viewer Pane which is at Bottom Right in RstudioPackagesFor Example:
leafletNHANES