tests/testthat/test-download_retry.R

test_that("Downloading with retries", {
    expect_error(download_retry("http://duffel.rail.bio/recount/v2/DRP000366/files_info.tsv_fake", N.TRIES = 1))
    expect_error(download_retry("http://duffel.rail.bio/recount/v2/DRP000366/files_info.tsv", N.TRIES = 0))
    expect_error(download_retry("http://duffel.rail.bio/recount/v2/DRP000366/files_info.tsv", N.TRIES = -1L))
})

Try the recount package in your browser

Any scripts or data that you put into this service are public.

recount documentation built on Dec. 20, 2020, 2:01 a.m.