Skip to content

Commit

Permalink
Merge pull request #1101 from geocompx/front_cover2_install_packages
Browse files Browse the repository at this point in the history
Front cover reproducibility improvements
  • Loading branch information
Robinlovelace committed Jun 12, 2024
2 parents 67219a0 + c54f6a7 commit f6f0aff
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions code/front_cover2.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
library(camcorder)
library(cartogram)
library(glue)
library(ggtext)
library(ggforce)
library(MoMAColors) # dev version available on github: https://github.com/BlakeRMills/MoMAColors
library(rnaturalearth)
library(scico)
library(sf)
library(showtext)
library(terra)
library(tidyterra)
library(tidyverse)
library(od)
remotes::install_github("BlakeRMills/MoMAColors")
pkgs = c(
"camcorder",
"cartogram",
"glue",
"ggtext",
"ggforce",
"MoMAColors", # dev version available on github: https://github.com/BlakeRMills/MoMAColors
"rnaturalearth",
"scico",
"sf",
"showtext",
"terra",
"tidyterra",
"tidyverse",
"od"
)
pkgs_to_install = pkgs[!pkgs %in% installed.packages()]
remotes::install_cran(pkgs_to_install)
sapply(pkgs, require, character.only = TRUE)

# Set fonts
font_add_google("Raleway", "ral")
Expand Down

0 comments on commit f6f0aff

Please sign in to comment.