filmov
tv
Installing and Loading MANY R packages with 1 line (kind of)

Показать описание
Installing and loading many R packages can be a pain. I wrote a file to help me keep track of packages across projects and install missing packages on the fly! Once the script is written, you only need 1 line to run the file for any project.
Yes, the script itself is more than 1 line... The script has to hold all the packages which take up the most room...
The 1 one:
source("load_packages.R")
The "kind of" one-line part:
rm(list=ls())
packages = c("tidyverse")
# Load packages
w.d = getwd()
Yes, the script itself is more than 1 line... The script has to hold all the packages which take up the most room...
The 1 one:
source("load_packages.R")
The "kind of" one-line part:
rm(list=ls())
packages = c("tidyverse")
# Load packages
w.d = getwd()