tests/testthat/test-get_downloads_stats.R

test_that("get_download_stats works", {

  testthat::expect_is(get_download_stats(), "data.frame")
  testthat::expect_is(get_download_stats('fslr'), "integer")
  testthat::expect_is(get_download_stats('fslr', verbose=TRUE), "data.frame")
  testthat::expect_is(get_download_stats(verbose = TRUE, error = TRUE), "data.frame")
})
neuroconductor-releases/neurocStats documentation built on Oct. 30, 2020, 11:09 p.m.