R Under development (unstable) (2024-11-03 r87286 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ### "lazy" transition from "testthat" to "tinytest" > ### Copyright (C) 2020-2022 Sebastian Meyer > > if (!requireNamespace("tinytest", quietly = TRUE) + || packageVersion("tinytest") < "1.2.4") { + message("this test suite requires package 'tinytest' (>= 1.2.4)") + q("no") + } > > ## provide simple replacement for test_that() expectation bundles > ## WARNING: this wrapper doesn't print test results, not even failures! > test_that <- function (desc, code) { + eval(substitute(code), new.env(parent = parent.frame())) + invisible() + } > > ## show warnings as they appear > options(warn = 1) > > ## use verbose = 1 to print_status() only after each test file, > ## not after each expression (verbose = 2), > ## and omit ANSI escapes for a cleaner log > tinytest::test_package("surveillance", testdir = "testthat", + verbose = 1, color = FALSE) Loading required package: sp Loading required package: xtable This is surveillance 1.24.1; see 'package?surveillance' or https://surveillance.R-Forge.R-project.org/ for an overview. test-algo.glrnb.R............. 1 tests OK 0.2s test-bodaDelay.R.............. 29 tests OK 0.2s test-calibration.R............ 9 tests OK 0.3s test-createLambda.R........... 17 tests OK 0.5s test-determineSources.R....... 3 tests OK 0.1s test-earsC.R.................. 9 tests OK 0.1s test-farringtonFlexible.R..... 55 tests OK 0.9s test-formatDate.R............. 9 tests OK 15ms Loading required namespace: numDeriv test-hhh4+derivatives.R....... 28 tests OK 4.4s test-hhh4_ARasNE.R............ 4 tests OK 0.1s test-hhh4_NA.R................ 13 tests OK 0.2s test-hhh4_NegBinGrouped.R..... 8 tests OK 3.3s test-hhh4_offsets.R........... 10 tests OK 61ms test-hhh4_weights.R........... 4 tests OK 10ms test-nbOrder.R................ 2 tests OK 2ms test-plapply.R................ 1 tests OK 0.4s test-siafs.R.................. 72 tests OK 1.3s Loading required namespace: sf test-sts.R.................... 27 tests OK 0.7s test-tiafs.R.................. 6 tests OK 0.3s test-toLatex.sts.R............ 12 tests OK 1.2s Loading objects: districtsD stateD test-twinstim_misc.R.......... 0 tests 0.5s test-twinstim_score.R......... 6 tests OK 0.7s All ok, 325 results (15.4s) > > proc.time() user system elapsed 15.06 1.42 16.81