MRC IEU software metrics

Author

TP

Modified

June 24, 2025

R packages

  • Raw download count of MRC IEU authored and co-authored R packages on CRAN
Show the code
library(packageRank)
library(ggplot2)
library(PrettyCols)
library(scales)
Show the code
dat <- 
  cranDownloads(
    packages = c(
      "OneSampleMR",
      "ieugwasr",
      "epigraphdb",
      "tmsens",
      "mrbayes",
      "bpbounds",
      "Statamarkdown",
      "midoc"
    ),
    from = "2018",
    to = Sys.Date() - 1,
    fix.cranlogs = TRUE
  )
dat$cranlogs.data |>
  ggplot() + 
  aes(x = date, y = cumulative, color = package) + 
  geom_line(linewidth = 0.75) + 
  scale_y_continuous(labels = label_comma()) +
  scale_color_pretty_d(palette = "Autumn") + 
  ylab("Cumulative downloads") +
  xlab("Date") +
  labs(color = 'Package') 

  • Comparison with non-IEU MendelianRandomization package
Show the code
dat2 <- 
  cranDownloads(
    packages = c(
      "MendelianRandomization",
      "ieugwasr"
    ),
    from = "2016-08-31",
    to = Sys.Date() - 1,
    fix.cranlogs = TRUE
  )
dat2$cranlogs.data |>
  ggplot() + 
  aes(x = date, y = cumulative, color = package) + 
  geom_line(linewidth = 0.75) + 
  scale_y_continuous(labels = label_comma()) +
  scale_color_pretty_d(palette = "Autumn") + 
  ylab("Cumulative downloads") +
  xlab("Date") +
  labs(color = 'Package')

Python packages

  • ieugwaspy

Links to article citations