inst/baseballstats/tests/testthat.R

# Note that you would never run this file directly. This is used by tools::testInstallPackages()
# and other packages like covr.
# To actually run the tests, you need to set the working directory then run
# devtools::test('baseballstats')

# This line ensures that R CMD check can run tests.
# See https://github.com/hadley/testthat/issues/144
Sys.setenv("R_TESTS" = "")

library(baseballstats)

testthat::test_check('baseballstats')
UptakeOpenSource/pkgnet documentation built on April 20, 2024, 3:14 p.m.