R-CMD-check / R CMD check (push) Successful in 3m52s
Integrate Civilytics Reveal.js slide extension, HTML/PDF/Typst document themes, and _brand.yml into the package under inst/quarto/. Three new helper functions (use_civilytics_revealjs, use_civilytics_theme, use_civilytics_brand) copy assets into a user's Quarto project. Logos are stored once in inst/img/ and distributed at install time.
41 lines
1.4 KiB
R
41 lines
1.4 KiB
R
#' @description
|
|
#' Provides a complete ggplot2 brand theme system for Civilytics Consulting,
|
|
#' including editorial light, dark, and slide-optimized themes; 10 curated
|
|
#' color palettes; logo composition; and data-wrangling helpers for
|
|
#' public-sector analysis.
|
|
#'
|
|
#' @section Themes:
|
|
#' \itemize{
|
|
#' \item [theme_civilytics()] -- editorial theme with warm paper background
|
|
#' \item [theme_civilytics_dark()] -- navy background variant
|
|
#' \item [theme_civilytics_slide()] -- transparent background, larger text
|
|
#' }
|
|
#'
|
|
#' @section Color palettes:
|
|
#' \itemize{
|
|
#' \item [civilytics_colors] -- 53 named brand colors
|
|
#' \item [civilytics_palettes] -- 10 visualization palettes
|
|
#' \item [civilytics_palette()] -- extract colors by palette name
|
|
#' \item [scale_color_civilytics()] / [scale_fill_civilytics()] -- ggplot2 scales
|
|
#' }
|
|
#'
|
|
#' @section Quarto templates:
|
|
#' \itemize{
|
|
#' \item [use_civilytics_revealjs()] -- install Reveal.js slide extension
|
|
#' \item [use_civilytics_theme()] -- install HTML/PDF/Typst document theme
|
|
#' \item [use_civilytics_brand()] -- install brand.yml only (Quarto 1.5+)
|
|
#' }
|
|
#'
|
|
#' @keywords internal
|
|
#' @importFrom stats qbeta
|
|
#' @importFrom stats qnorm
|
|
"_PACKAGE"
|
|
|
|
## usethis namespace: start
|
|
## usethis namespace: end
|
|
NULL
|
|
|
|
# state.abb and state.name are lazy data from the datasets package (base R).
|
|
# They cannot be imported via @importFrom -- suppress the R CMD check NOTE here.
|
|
utils::globalVariables(c("state.abb", "state.name"))
|