Last active
November 9, 2021 22:22
-
-
Save matt-dray/cb92b442d684221c7b1b5112fc364fb6 to your computer and use it in GitHub Desktop.
The {runcharter} package by John MacKintosh needs more badges
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" |
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