The typical R setup requires installing two pieces of software: R and RStudio.
You can confirm R and RStudio are working by running the installed RStudio application.
You can expand R's capabilities by installing packages. It's common to get them from the CRAN package repository.
install.packages("package_name"), e.g.:
install.packages("ggplot2")
> followed by white space) appears in the Console, installation has finished.Consider getting important package names from your instructors or from academic papers. You will need to know and type the name of your package precisely as it appears in CRAN.
You also can confirm whether a package is installed:
"package_name" %in% installed.packages(), e.g.:
"ggplot2" %in% installed.packages()
TRUE. If not, you'll get the result FALSE.