scripts/hex_sticker.R

library(hexSticker)
library(usethis)

logo_location <- "inst/img/logo.png"

sticker(
  subplot =
    png::readPNG("inst/img/bulma_logo.png") %>%
    grid::rasterGrob(interpolate = TRUE),
  package  = "bulma.R",
  filename = logo_location,
  p_size   = 20,
  s_width  = 10,
  s_height = 0.9,
  s_x      = 1,
  p_color  = "#008080",
  h_color  = "#008080",
  h_fill   = "#FAFAFA"
)

file.remove("man/figures/logo.png")
use_logo(logo_location)
tjpalanca/bulma.R documentation built on Dec. 23, 2021, 10:58 a.m.