create_hexsticker: Make hexagonal logo for package

View source: R/create_hexsticker.R

create_hexstickerR Documentation

Make hexagonal logo for package

Description

This function makes a hexagonal logo in INBO style for the provided package name.

Usage

create_hexsticker(
  package_name,
  filename = path("man", "figures", "logo.svg"),
  icon,
  x = 0,
  y = 0,
  scale = 1
)

Arguments

package_name

package name that should be mentioned on the hexagonal sticker.

filename

filename to save the sticker.

icon

optional filename to an .svg file with an icon.

x

number of pixels to move the icon to the right. Use negative numbers to move the icon to the left.

y

number of pixels to move the icon to the bottom. Use negative numbers to move the icon to the top.

scale

Scales the icon.

Value

A figure is saved in the working directory or provided path.

See Also

Other utils: ask_yes_no(), author2df(), bookdown_zenodo(), c_sort(), execshell(), menu_first(), orcid2person(), store_authors(), use_author(), validate_email(), validate_orcid(), yesno()

Examples

## Not run: 
# make tempfile to save logo (or just use (path and) filename)
#' output <- tempfile(pattern = "hexsticker", fileext = ".svg")
create_hexsticker("checklist", filename = output)

## End(Not run)

inbo/checklist documentation built on June 15, 2025, 12:54 p.m.