cranlogs (version 2.1.1)

cranlogs_badge: Create Markdown code for a cranlogs badge

Description

Create Markdown code for a cranlogs badge

Usage

cranlogs_badge(package_name, summary = c("last-month", "last-day",
  "last-week", "grand-total"), color = "blue")

Arguments

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".

Value

The string to be copy-pasted to the README source.

Examples

Run this code
# NOT RUN {
cranlogs_badge("praise")
cranlogs_badge("praise", summary = "grand-total")
cranlogs_badge("praise", summary = "last-week", color = "orange")
cranlogs_badge("praise", color = "ff8c69")
# }

Run the code above in your browser using DataLab