tests/testthat/test.download_pt.R

context("download_pt")

test_that(
  "invalid inputs produce an error",
  {
    # When there is no argument.
    expect_error({
      download_pt()
    })

    # When the argument is a data.frame
    expect_error({
      download_pt(iris)
    })
  }
)

Try the pubtatordb package in your browser

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

pubtatordb documentation built on Dec. 1, 2019, 1:17 a.m.