inst/hex/emayili-hex.R

library(hexSticker)
library(showtext)

# Load Google font.
#
font_add_google("Roboto Slab", "roboto_slab")
showtext_auto()

sticker(here::here("inst/hex/envelope-regular.png"),
  # Image
  s_x = 1,
  s_y = 1.10,
  s_width = 0.6,
  s_height = 0.6,
  # Package name
  package = "{emayili}",
  p_size = 16,
  p_y = 0.45,
  p_color = "#ffffff",
  p_family = "roboto_slab",
  # Hex
  h_fill = "#3498db",
  h_color = "#000000",
  # Output
  filename = here::here("man/figures/emayili-hex.png"),
  dpi = 300
)

Try the emayili package in your browser

Any scripts or data that you put into this service are public.

emayili documentation built on Aug. 30, 2023, 5:12 p.m.