inst/hex/hex.R

library(hexSticker)
library(showtext)

# Load Google font.
font_add_google(name = "Roboto", family = "Roboto")
showtext_auto()

SWIDTH <- 851
SHEIGHT <- 960
SFACTOR <- 1350

sticker(
  here::here("inst/hex/clockify-icon.png"),
  # Image
  s_x = 0.925,
  s_y = 1.10,
  s_width = SWIDTH / SFACTOR,
  s_height = SHEIGHT / SFACTOR,
  # Package name
  package = "clockify",
  p_size = 36,
  p_x = 1.370,
  p_y = 0.395,
  p_color = "#000000",
  p_family = "Roboto",
  # Hex
  h_fill = "#E4EAEE",
  h_size = 1.5,
  h_color = "#03a9f4",
  # Output
  filename = here::here("man/figures/clockify-hex.png"),
  asp = 0.85,
  dpi = 600,
  angle = 30
)

Try the clockify package in your browser

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

clockify documentation built on Sept. 2, 2023, 9:08 a.m.