Learn R Programming

stickr (version 0.3.1)

stickr_insert: Add hex sticker in R Markdown document

Description

Using the dpi argument in ... will help scale width. Higher dpi will correspond to smaller images in rendered documents. In some quick testing, a dpi of 5000 results in an approximately in-line sized image.

Usage

stickr_insert(name, ...)

Arguments

name

name of sticker, character of length 1

...

other arguments passed to stickr_get() and knitr::include_graphics(), consider dpi

Value

Call to knitr::include_graphics()

Details

If you hit rate limits on GitHub API calls, consider setting the GITHUB_PAT environment variable. See gh::gh() for details.

Examples

Run this code
# NOT RUN {
# This returns a function, really only makes sense inside Rmd
if (interactive()) stickr_insert("R6")
# }

Run the code above in your browser using DataLab