Skip to content

Instantly share code, notes, and snippets.

@matt-dray
Last active November 9, 2021 22:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-dray/cb92b442d684221c7b1b5112fc364fb6 to your computer and use it in GitHub Desktop.
Save matt-dray/cb92b442d684221c7b1b5112fc364fb6 to your computer and use it in GitHub Desktop.
The {runcharter} package by John MacKintosh needs more badges
install.packages(c("remotes", "tibble", "purrr"))
remotes::install_github("matt-dray/badgr")
tibble::tribble(
~label, ~message,
"years", "8",
"kids", "2",
"late nights", "ridiculous",
"sleep missed", "weeks",
"pringles", "way too many",
"learnt", "loads"
) |>
purrr::pmap(badgr::get_badge)
# [[1]]
# [1] "![](https://img.shields.io/badge/years-8-ff0000?style=flat)"
#
# [[2]]
# [1] "![](https://img.shields.io/badge/kids-2-ff0000?style=flat)"
#
# [[3]]
# [1] "![](https://img.shields.io/badge/late_nights-ridiculous-ff0000?style=flat)"
#
# [[4]]
# [1] "![](https://img.shields.io/badge/sleep_missed-weeks-ff0000?style=flat)"
#
# [[5]]
# [1] "![](https://img.shields.io/badge/pringles-way_too_many-ff0000?style=flat)"
#
# [[6]]
# [1] "![](https://img.shields.io/badge/learnt-loads-ff0000?style=flat)"
@matt-dray
Copy link
Author






Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment