inst/other/generate-hex-sticker.R

library(hexSticker)
library(here)

image <- here("inst/figures/mini-dalle.png")

sticker(
    image,
    package = "openai",
    p_size = 20,
    s_x = 1,
    s_y = .75,
    p_color = "#419072",
    h_fill = "#eef5f4",
    h_color = "#419072",
    s_width = .4,
    s_height = .4,
    filename = "man/figures/logo.png"
)

Try the openai package in your browser

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

openai documentation built on March 31, 2023, 11:56 p.m.