Skip to content
Branch: master
Clone or download
Latest commit 7423d17 Jan 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
.Rbuildignore
.gitignore
DESCRIPTION
Makefile
NAMESPACE
README.Rmd
README.md
ypages.Rproj

README.md

badger: Badge for R Package

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

Author

Guangchuang YU https://guangchuangyu.github.io

School of Basic Medical Sciences, Southern Medical University

saythanks

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 (bioconductor)
    • syntax: `r badge_bioc_release("ggtree", "green")`
    • badge:
  • release version (CRAN)
    • syntax: `r badge_cran("badger", "orange")`
    • badge:
  • devel version
    • syntax: `r badge_devel("guangchuangyu/ggtree", "blue")`
    • badge:

Download stats for bioconductor

  • 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:

Download stats for CRAN

  • Total downloads
    • syntax: `r badge_cran_download("badger", "grand-total", "blue")`
    • badge:
  • Monthly Downloads
    • syntax: `r badge_cran_download("badger", "last-month", "green")`
    • badge:
  • Weekly Downloads
    • syntax: `r badge_cran_download("badger", "last-week", "yellow")`
    • 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("1st most cited paper", "in OMICS", "blue", "http://online.liebertpub.com/action/showMostCitedArticles?journalCode=omi")`
  • badge:

Development

  • Lifecycle
    • syntax: `r badge_lifecycle("maturing", "blue")`
    • badge:
  • travis build-status
    • syntax: `r badge_travis("rstudio/rmarkdown")`
    • badge:
  • coveralls code coverage
    • syntax: `r badge_coveralls("google/benchmark")`
    • badge:
  • code size
    • syntax: `r badge_code_size("GuangchuangYu/badger")`
    • badge:
  • last commit date
    • syntax: `r badge_last_commit("GuangchuangYu/badger")`
    • badge:
  • direct and recursive dependencies (for CRAN pkgs)
    • syntax: `r badge_dependencies("badger")`
    • badge: Dependencies

Related Tools

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.