tests/testthat/test-rsbp.R

if(require("suppdata") & require("testthat")){
    
    context("RSBP")

    test_that("'Proceedings of the royal society Biology' (RSBP) works", {    
        skip_on_cran()
        expect_true(file.exists(suppdata("10.1098/rspb.2015.0338", vol = 282,
                                         issue = 1811, 1)))
    })

    test_that("'Proceedings of the royal society Biology' (RSBP) fails for character SI info", {    
        skip_on_cran()
        expect_error(suppdata("10.1098/rspb.2015.0338", vol = 282, issue = 1811, "99"), "numeric SI info")
    })

}
willpearse/grabr documentation built on Oct. 20, 2023, 3:47 a.m.