Skip to content
/ stickr Public

An R package to use RStudio Hex Stickers.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

akgold/stickr

Repository files navigation

stickr

codecov

The goal of stickr is to make it easier for you to include any R package hex stickers in your work.

Installation

You can install the released version of stickr from GitHub with:

remotes::install_github("akgold/stickr")

Example

This is a basic example which shows you how to find and download a sticker:

library(stickr)

# Get the tidyverse sticker, downloads to temp file if no destfile specified
stickr_get("tidyverse")

# Get a sticker that's not in the RStudio repository
stickr_get("textmineR")

# But that's the old sticker, get the new one by name
stickr_get("textmineR", filename = "textmineR_v8.png")

A common use case would be to include in an R Markdown document, that would be done using stickr_insert("tidyverse"). If trying to insert inline, consider using dpi argument.

GitHub Rate Limits

If you're performing unauthenticated calls to get stickers, you'll probably hit rate limits quite quickly. See the gh package documentation for details on how to provide a GitHub PAT to authenticate and get higher rate limits.

Package Maintainers

Want to make sure users can get your sticker with stickr? Two steps!

  1. Make sure your package's DESCRIPTION file includes a URL and/or BugReport field field that points to your package's GitHub repository.
  2. Put your hex sticker in the /man/figures directory inside your package -- one named logo.png will be used by default, but other names are ok too.

About

An R package to use RStudio Hex Stickers.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages