Files
civilyticsR/NAMESPACE
jared 5fc8155965
R-CMD-check / R CMD check (pull_request) Successful in 3m53s
feat(logo): add stamp_logo_png() to brand file-based PNG outputs
civilytics_logo()/make_logo_grob() brand ggplot/grobs, but flextables and
other outputs are rendered to PNG first and can't use them. stamp_logo_png()
is the raster analogue: it resolves the SAME brand asset that make_logo_grob()
uses (via the type/variant switch) and composites it into a corner of an
existing PNG in place, so file-based tables stay visually consistent with
logo-branded plots.

Dependency-free by design — uses only png + grid + grDevices (all already
imported), no magick. Configurable type/variant/position/width/margin;
preserves the image's pixel dimensions. Adds tests (21 assertions).
2026-06-22 16:33:08 -04:00

81 lines
2.0 KiB
Plaintext

# Generated by roxygen2: do not edit by hand
export(beep)
export(add_logo)
export(add_logo_ga)
export(agresti_coull_interval)
export(civilytics_colors)
export(civilytics_load_fonts)
export(civilytics_logo)
export(civilytics_pal)
export(civilytics_palette)
export(civilytics_palettes)
export(clopper_pearson)
export(countCleanr)
export(countDots)
export(countNA)
export(dbSafeNames)
export(findDots)
export(get_fips)
export(get_png)
export(get_stabbr)
export(grade_level_to_num)
export(has_caption)
export(make_logo_grob)
export(match_test)
export(measure_caption)
export(na_sum)
export(na_zero)
export(nvals)
export(outersect)
export(perturb_count)
export(plot_jpeg)
export(postcode_lookup)
export(pretty_count)
export(pretty_per)
export(race_short_names)
export(random_round)
export(rnh)
export(round_to_nearest_half)
export(safe_max)
export(safe_ratio)
export(scale_color_civilytics)
export(scale_fill_civilytics)
export(simpleCap)
export(stamp_logo_png)
export(star_subs)
export(theme_civilytics)
export(theme_civilytics_dark)
export(theme_civilytics_dark_map)
export(theme_civilytics_map)
export(theme_civilytics_slide)
export(theme_civilytics_slide_map)
export(trim_max)
export(use_civilytics_brand)
export(use_civilytics_revealjs)
export(use_civilytics_theme)
export(waldInterval)
export(z_gap_test)
export(z_univariate)
import(ggplot2)
importFrom(ggplot2,annotation_custom)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,theme)
importFrom(ggplot2,theme_void)
importFrom(grDevices,dev.off)
importFrom(grDevices,png)
importFrom(graphics,rasterImage)
importFrom(grid,grid.draw)
importFrom(grid,grid.newpage)
importFrom(grid,grid.raster)
importFrom(grid,rasterGrob)
importFrom(gridExtra,arrangeGrob)
importFrom(jpeg,readJPEG)
importFrom(png,readPNG)
importFrom(stats,qbeta)
importFrom(stats,qnorm)
importFrom(stats,runif)
importFrom(stringdist,stringsim)
importFrom(stringr,str_count)
importFrom(utils,flush.console)