Stickr
An R package to use RStudio Hex Stickers.
Install / Use
/learn @alexkgold/StickrREADME
stickr
<img src="https://github.com/akgold/stickr/blob/master/man/figures/logo.png" width="400"> <!-- badges: start --> <!-- badges: end -->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!
- Make sure your package's DESCRIPTION file includes a URL and/or BugReport field field that points to your package's GitHub repository.
- Put your hex sticker in the
/man/figuresdirectory inside your package -- one namedlogo.pngwill be used by default, but other names are ok too.
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
