Code
#| echo: false
load_or_install <- function(pkg) {
if (!require(pkg, character.only = TRUE)) {
install.packages(pkg)
library(pkg, character.only = TRUE)
}
}
load_or_install("tidyverse")Loading required package: tidyverse
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.2 ✔ tibble 3.2.1
✔ lubridate 1.9.4 ✔ tidyr 1.3.1
✔ purrr 1.0.4
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
Code
load_or_install("glue")Loading required package: glue
Code
load_or_install("here")Loading required package: here
here() starts at /Users/foreilly/Documents/levante-pilots
Code
load_or_install("viridis")Loading required package: viridis
Loading required package: viridisLite
Code
load_or_install("purrr")
load_or_install("readr")
load_or_install("dplyr")
load_or_install("tidyr")
load_or_install("quarto")Loading required package: quarto
Code
load_or_install("forcats")
load_or_install("ggplot2")
load_or_install("ggrepel")Loading required package: ggrepel
Code
load_or_install("broom")Loading required package: broom
Code
load_or_install("purrr")