sticker.R

library(hexSticker)
library(desc)
desc = desc::description$new()
package = desc$get("Package")
outline = "#3f8cb1"
background = "black"
sticker("icon.png",
        package = package,
        h_fill = background,
        h_color = outline,
        s_width = 0.7,
        s_height = 0.25,
        s_x = 1,
        filename = "sticker.png")

usethis::use_build_ignore(
  c("icon.png", "sticker.R", "sticker.png"))
muschellij2/rscopus documentation built on Feb. 4, 2024, 10:40 p.m.