Description Usage Arguments Value Examples
Create Markdown code for a cranlogs badge
1 2 | 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.
1 2 3 4 | cranlogs_badge("praise")
cranlogs_badge("praise", summary = "grand-total")
cranlogs_badge("praise", summary = "last-week", color = "orange")
cranlogs_badge("praise", color = "ff8c69")
|
[1] "[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/last-month/praise?color=blue)](https://r-pkg.org/pkg/praise)"
[1] "[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/praise?color=blue)](https://r-pkg.org/pkg/praise)"
[1] "[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/last-week/praise?color=orange)](https://r-pkg.org/pkg/praise)"
[1] "[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/last-month/praise?color=ff8c69)](https://r-pkg.org/pkg/praise)"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.