How to list all packages that have been imported into current session
> (.packages())
Example output
> (.packages()) [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base"
To see if a package is installed:
> x<-grep("tidyverse",installed.packages()) > installed.packages()[x]
Install a number of packages as below:
> install.packages(c("nycflights13", "gapminder", "Lahman"))
If you have found my website useful, please consider buying me a coffee below 😉