inst/logo/logo.R

library("magick")
library("showtext")

font_add_google("Zilla Slab", "pf", regular.wt = 500)

hexSticker::sticker(
    subplot = ~ plot.new(), s_x = 1, s_y = 1, s_width = 0.1, s_height = 0.1,
    package = "Rcpi", p_x = 1, p_y = 1, p_size = 11, h_size = 1.2, p_family = "pf",
    p_color = "#7DBC8E", h_fill = "#FFF9F2", h_color = "#7DBC8E",
    dpi = 320, filename = "man/figures/logo.png"
)

image_read("man/figures/logo.png")

rstudioapi::restartSession()
road2stat/Rcpi documentation built on April 30, 2024, 6:44 a.m.