badger: Badge for R Package
![](https://camo.githubusercontent.com/5f54adf10bc26917ffad5349a7468211f71b7a789d00a78c5bfe112714f1ba4e/687474703a2f2f6372616e6c6f67732e722d706b672e6f72672f6261646765732f6c6173742d7765656b2f6261646765723f636f6c6f723d677265656e)
Query information and generate badge for using in README and GitHub Pages.
Guangchuang YU https://guangchuangyu.github.io
School of Public Health, The University of Hong Kong
![](https://camo.githubusercontent.com/b5eb901127d0cdec8ec37004aa395bd21af7593338bc1d8a685127aed5c34cec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545362538392539332545382542352538462d2545362539342541462545342542422539382545352541452539442f2545352542452541452545342542462541312d677265656e2e7376673f7374796c653d666c6174)
Get the released version from CRAN:
install.packages("badger")
Or the development version from github:
## install.packages("devtools")
devtools::install_github("GuangchuangYu/badger")
- release version
- syntax:
`r badge_bioc_release("ggtree", "green")`
- badge:
![](https://camo.githubusercontent.com/3d1e218f344f469f627811c095c15666f8bfe4ccc2914b7d959ae16d28d53b4c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c6561736525323076657273696f6e2d312e31302e352d677265656e2e7376673f7374796c653d666c6174)
- devel version
- syntax:
`r badge_devel("guangchuangyu/ggtree", "blue")`
- badge:
![](https://camo.githubusercontent.com/26931d77321bdf22fa71eb9c8d2a6c5e6998ba48b2d9d5a383f4f3a1abf2e3fc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646576656c25323076657273696f6e2d312e31312e362d626c75652e7376673f7374796c653d666c6174)
- Total of total :)
- syntax:
`r badge_bioc_download("clusterProfiler", "total", "blue", "total")`
- badge:
![](https://camo.githubusercontent.com/1251fec35460c037bf43f75f7b8c77fd841c8a6f3a6b0583d31138302ade7014/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d3132343937322f746f74616c2d626c75652e7376673f7374796c653d666c6174)
- Total of distinct IPs
- syntax:
`r badge_bioc_download("clusterProfiler", "total", "yellow")`
- badge:
![](https://camo.githubusercontent.com/5eb117ffe9bbc9ab5fd988dc89568c69b1a5055e1d18394a94518e3ac7ef3b72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d36343330362f746f74616c2d79656c6c6f772e7376673f7374796c653d666c6174)
- Monthly download of distinct IPs
- syntax:
`r badge_bioc_download("clusterProfiler", "month", "green")`
- badge:
![](https://camo.githubusercontent.com/d84077e59bd07f119ba31271aeaa23314dfaa30056e6df67dc9af07319453b4e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d323832312f6d6f6e74682d677265656e2e7376673f7374796c653d666c6174)
- Altmetric score
- syntax:
`r badge_altmetric("10533079", "green")`
- badge:
![](https://camo.githubusercontent.com/9694453ad27e5cf7576ffc761cce3442d9138ff3108374efa24a505037521fe7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f416c746d65747269632d3332372d677265656e2e7376673f7374796c653d666c6174)
- DOI
- syntax:
`r badge_doi("10.1111/2041-210X.12628", "yellow")`
- badge:
![](https://camo.githubusercontent.com/405dfde35dbb606b370a7725cb0b83b72086839a7b721cdec71c65436724fe01/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f692d31302e313131312f323034312d2d323130582e31323632382d79656c6c6f772e7376673f7374796c653d666c6174)
- syntax:
`r badge_custom("1st most cited paper", "in OMICS", "blue", "http://online.liebertpub.com/action/showMostCitedArticles?journalCode=omi")`
- badge:
![](https://camo.githubusercontent.com/d6a5d6ec109b85c20004c683842177d00c777238e16dcb2e4a68417665b231dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f3173742532306d6f7374253230636974656425323070617065722d696e2532304f4d4943532d626c75652e7376673f7374796c653d666c6174)