Skip to content

Commit

Permalink
sysfonts
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell committed Sep 7, 2024
1 parent bab1b3f commit 09ec569
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 665 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Suggests:
usethis
Imports:
ggplot2,
showtext
sysfonts
2 changes: 1 addition & 1 deletion R/dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ rebuild_package_and_check <- function() {
)
imports_packages <- c(
"ggplot2",
"showtext"
"sysfonts"
)
imports_packages |> purrr::walk(
\(x){usethis::use_package(x, type = "Imports"); x}
Expand Down
3 changes: 0 additions & 3 deletions R/theme-aoc.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#' Set a Alexandria Ocasio Cortez inspired look to a ggplot2 plot
#' @export
theme_aoc <- \(){
if(!requireNamespace("showtext")) {
stop("{showtext} package is requried.")
}
sysfonts::font_add_google("Nunito", "nunito")
ggplot2::theme_minimal(base_family = "nunito") +
ggplot2::theme(
Expand Down
Loading

0 comments on commit 09ec569

Please sign in to comment.