stickr_insert: Add hex sticker in R Markdown document

Description Usage Arguments Details Value Examples

View source: R/funs.R

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

1

Arguments

name

name of sticker, character of length 1

...

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

Details

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

Value

Call to knitr::include_graphics()

Examples

1
2
# This returns a function, really only makes sense inside Rmd
if (interactive()) stickr_insert("R6")

Example output



stickr documentation built on July 8, 2020, 5:12 p.m.