Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

matt-dray commented Nov 9, 2021






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