inst/removed/tests/testthat/test-p_author.R

context("Checking p_author")

test_that("p_author works",{
    # Replace with a different test that isn't messed up by the
    # development environment.
    # expect_true(
    #     grepl("Tyler Rinker \\[aut, cre, ctb\\].+?Dason Kurkiewicz \\[aut, ctb\\]", 
    #         p_author(pacman))
    # )
    p_load(lattice)
    expect_equal(p_author(lattice), "Deepayan Sarkar <deepayan.sarkar@r-project.org>")
})

Try the pacman package in your browser

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

pacman documentation built on May 2, 2019, 1:08 p.m.