charlie86 / badger

Badge for R Package

Home Page:https://cran.r-project.org/package=badger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

badger: Badge for R Package

CRAN_Status_Badge

Query information and generate badge for using in README and GitHub Pages.

Author

Guangchuang YU https://guangchuangyu.github.io

School of Public Health, The University of Hong Kong

Installation

Get the released version from CRAN:

install.packages("badger")

Or the development version from github:

## install.packages("devtools")
devtools::install_github("GuangchuangYu/badger")

Examples

Package Version

  • release version
    • syntax: `r badge_bioc_release("ggtree", "green")`
    • badge:
  • devel version
    • syntax: `r badge_devel("guangchuangyu/ggtree", "blue")`
    • badge:

Download stats

  • Total of total :)
    • syntax: `r badge_bioc_download("clusterProfiler", "total", "blue", "total")`
    • badge:
  • Total of distinct IPs
    • syntax: `r badge_bioc_download("clusterProfiler", "total", "yellow")`
    • badge:
  • Monthly download of distinct IPs
    • syntax: `r badge_bioc_download("clusterProfiler", "month", "green")`
    • badge:

Impact

  • Altmetric score
    • syntax: `r badge_altmetric("10533079", "green")`
    • badge:

Academic

  • DOI
    • syntax: `r badge_doi("10.1111/2041-210X.12628", "yellow")`
    • badge:

Customize badge

  • syntax: `r badge_custom("2nd most cited paper", "in OMICS", "blue", "http://online.liebertpub.com/action/showMostCitedArticles?journalCode=omi")`
  • badge:

About

Badge for R Package

https://cran.r-project.org/package=badger


Languages

Language:R 88.7%Language:Makefile 11.3%