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
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/67b99576317fc3ac5a905f842c3c38c85670488201210b8009b26d2219ea73d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c6561736525323076657273696f6e2d312e362e31312d677265656e2e7376673f7374796c653d666c6174)
- devel version
- syntax:
`r badge_devel("guangchuangyu/ggtree", "blue")`
- badge:
![](https://camo.githubusercontent.com/700564e3ab32a54bd45ce785db0ca8f6d7fd0d9f138ed1d6f6b4425c25bb0583/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646576656c25323076657273696f6e2d312e372e31302d626c75652e7376673f7374796c653d666c6174)
- Total of total :)
- syntax:
`r badge_bioc_download("clusterProfiler", "total", "blue", "total")`
- badge:
![](https://camo.githubusercontent.com/9d10c8c98513e38bff7db0831cc2f52d4ca2fbfa671235080bd54ffe5b2c4bba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d37353631342f746f74616c2d626c75652e7376673f7374796c653d666c6174)
- Total of distinct IPs
- syntax:
`r badge_bioc_download("clusterProfiler", "total", "yellow")`
- badge:
![](https://camo.githubusercontent.com/a9e8478ca5cd7f2a8412c62d0639244a2a789e263a24b036a140774c49a7ce82/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d33373836352f746f74616c2d79656c6c6f772e7376673f7374796c653d666c6174)
- Monthly download of distinct IPs
- syntax:
`r badge_bioc_download("clusterProfiler", "month", "green")`
- badge:
![](https://camo.githubusercontent.com/8363aed6bc145f1d59cd2a164fb6c9ed816e5f17d10463c7af89db30794344dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d323535372f6d6f6e74682d677265656e2e7376673f7374796c653d666c6174)
- Altmetric score
- syntax:
`r badge_altmetric("10533079", "green")`
- badge:
![](https://camo.githubusercontent.com/16568972f6531dd20cf48f6c06d23de60d896abb75c6cbcab57899253512281f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f416c746d65747269632d3334382d677265656e2e7376673f7374796c653d666c6174)
- DOI
- syntax:
`r badge_doi("10.1111/2041-210X.12628", "yellow")`
- badge:
![](https://camo.githubusercontent.com/405dfde35dbb606b370a7725cb0b83b72086839a7b721cdec71c65436724fe01/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f692d31302e313131312f323034312d2d323130582e31323632382d79656c6c6f772e7376673f7374796c653d666c6174)
- syntax:
`r badge_custom("2nd most cited paper", "in OMICS", "blue", "http://online.liebertpub.com/action/showMostCitedArticles?journalCode=omi")`
- badge:
![](https://camo.githubusercontent.com/3c1dae8c130b83638fef9a21ac9d393e59fd066734c215555a802a8468132fd3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f326e642532306d6f7374253230636974656425323070617065722d696e2532304f4d4943532d626c75652e7376673f7374796c653d666c6174)