libraries {shortcuts} | R Documentation |
Compiles and installs all libraries in the current RStudio script where the word library is written
libraries()
libraries compiled
# Copy and paste all the following code in RStudio
loaded_pkgs<-(.packages())
# library(ggplot2)
# library(dplyr)
libraries()
loaded_pkgs2<-(.packages())
loaded_pkgs2[!loaded_pkgs2 %in% loaded_pkgs]