This function makes a hexagonal logo in INBO style for the provided package name.
create_hexsticker(
package_name,
filename = path("man", "figures", "logo.svg"),
icon,
x = 0,
y = 0,
scale = 1
)
package name that should be mentioned on the hexagonal sticker.
filename to save the sticker.
optional filename to an .svg
file with an icon.
number of pixels to move the icon to the right. Use negative numbers to move the icon to the left.
number of pixels to move the icon to the bottom. Use negative numbers to move the icon to the top.
Scales the icon
.
A figure is saved in the working directory or provided path.
Other utils:
ask_yes_no()
,
bookdown_zenodo()
,
c_sort()
,
clean_git()
,
execshell()
,
is_repository()
,
is_workdir_clean()
,
menu_first()
,
new_branch()
,
orcid2person()
,
store_authors()
,
use_author()
,
validate_email()
,
validate_orcid()
,
yesno()
if (FALSE) {
# make tempfile to save logo (or just use (path and) filename)
#' output <- tempfile(pattern = "hexsticker", fileext = ".svg")
create_hexsticker("checklist", filename = output)
}