tests/tinytest.R

if (requireNamespace("tinytest", quietly = TRUE)) {
  # set a seed to make the test deterministic
  set.seed(42)

  # run tests (package must be installed)
  tinytest::test_package("RestRserve")
  # tinytest::test_package(
  #   pkgname = "RestRserve",
  #   ncpu = getOption("Ncpus", 1L),
  #   side_effects = TRUE
  # )
}

Try the RestRserve package in your browser

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

RestRserve documentation built on May 29, 2024, 8:18 a.m.