Introduction

This R package queries download stats of R packages.

Download stats of CRAN packages

library("ggplot2")
library("dlstats")

x <- cran_stats(c("dlstats", "emojifont", "rvcheck"))
head(x)
##         start        end downloads   package
## 16 2016-06-01 2016-06-30        46   dlstats
## 19 2016-07-01 2016-07-31       161   dlstats
## 22 2016-08-01 2016-08-31       123   dlstats
## 25 2016-09-01 2016-09-20        67   dlstats
## 5  2016-02-01 2016-02-29        42 emojifont
## 8  2016-03-01 2016-03-31       323 emojifont
ggplot(x, aes(end, downloads, group=package, color=package)) +
    geom_line() + geom_label(aes(label=downloads))

Download stats of Bioconductor packages

pkgs <- c("ChIPseeker", "clusterProfiler", "DOSE", "ggtree", "GOSemSim", "ReactomePA")
y <- bioc_stats(pkgs)
head(y)
##         start        end Nb_of_distinct_IPs Nb_of_downloads    package
## 30 2014-04-01 2014-04-30                111             201 ChIPseeker
## 31 2014-05-01 2014-05-31                200             415 ChIPseeker
## 32 2014-06-01 2014-06-30                333             533 ChIPseeker
## 33 2014-07-01 2014-07-31                241             336 ChIPseeker
## 34 2014-08-01 2014-08-31                304             405 ChIPseeker
## 35 2014-09-01 2014-09-30                354             482 ChIPseeker
ggplot(y, aes(end, Nb_of_downloads, group=package, color=package)) +
    geom_line() + geom_point(aes(shape=package))