Create Markdown code for a cranlogs badge
cranlogs_badge(package_name, summary = c("last-month", "last-day", "last-week", "grand-total"), color = "blue")
package_name | name of the package |
---|---|
summary | One of "last-day", "last-week", "last-month", "grand-total". |
color | Either a hex color code or one of "brightgreen", "green", "yellowgreen", "yellow", "orange", "red", "lightgrey", "blue". |
The string to be copy-pasted to the README source.
cranlogs_badge("praise")#> [1] "[](https://r-pkg.org/pkg/praise)"cranlogs_badge("praise", summary = "grand-total")#> [1] "[](https://r-pkg.org/pkg/praise)"cranlogs_badge("praise", summary = "last-week", color = "orange")#> [1] "[](https://r-pkg.org/pkg/praise)"cranlogs_badge("praise", color = "ff8c69")#> [1] "[](https://r-pkg.org/pkg/praise)"