Running ‘tinytest.R’ [35s/53s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
  > ### "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
  > test_that <- function (desc, code) {
  +     eval(substitute(code), new.env(parent = parent.frame()))
  +     invisible()
  + }
  > 
  > ## show warnings as they appear
  > options(warn = 1)
  > 
  > ## we use verbose = 1 to print_status() only after each test file,
  > ## not after each expression (verbose = 2)
  > tinytest::test_package("surveillance", testdir = "testthat", verbose = 1)
  Loading required package: sp
  Loading required package: xtable
  This is surveillance 1.24.0; see 'package?surveillance' or
  https://surveillance.R-Forge.R-project.org/ for an overview.
  
  test-algo.glrnb.R.............    1 tests [0;32mOK[0m  [0;34m0.2s[0m
  
  test-bodaDelay.R..............   29 tests [0;32mOK[0m  [0;34m0.3s[0m
  
  test-calibration.R............    9 tests [0;32mOK[0m  [0;34m0.2s[0m
  
  test-createLambda.R...........   17 tests [0;32mOK[0m  [0;34m1.4s[0m
  
  test-determineSources.R.......    3 tests [0;32mOK[0m  [0;34m0.4s[0m
  
  test-earsC.R..................    9 tests [0;32mOK[0m  [0;34m0.6s[0m
  
  test-farringtonFlexible.R.....   55 tests [0;32mOK[0m  [0;34m4.5s[0m
  
  test-formatDate.R.............    9 tests [0;31m1 fails[0m  [0;36m23ms[0m
  Loading required namespace: numDeriv
  
  test-hhh4+derivatives.R.......   28 tests [0;32mOK[0m  [0;34m11.6s[0m
  
  test-hhh4_ARasNE.R............    4 tests [0;32mOK[0m  [0;34m0.3s[0m
  
  test-hhh4_NA.R................   13 tests [0;32mOK[0m  [0;34m0.7s[0m
  
  test-hhh4_NegBinGrouped.R.....    8 tests [0;32mOK[0m  [0;34m10.8s[0m
  
  test-hhh4_offsets.R...........   10 tests [0;32mOK[0m  [0;34m0.4s[0m
  
  test-hhh4_weights.R...........    4 tests [0;32mOK[0m  [0;36m58ms[0m
  
  test-nbOrder.R................    2 tests [0;32mOK[0m  [0;36m10ms[0m
  
  test-plapply.R................    1 tests [0;32mOK[0m  [0;36m90ms[0m
  'F' vs. cubature using method = "midpoint" ... TRUE 
  'Fcircle' vs. cubature using method = "midpoint" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "midpoint" ... TRUE 
  'F' vs. cubature using method = "SV" ... TRUE 
  'Fcircle' vs. cubature using method = "SV" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "SV" ... TRUE 
  'F' vs. cubature using method = "SV" ... TRUE 
  'Fcircle' vs. cubature using method = "SV" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "SV" ... TRUE 
  'F' vs. cubature using method = "SV" ... TRUE 
  'Fcircle' vs. cubature using method = "SV" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "SV" ... 
  	siaf parameter 1: TRUE 
  	siaf parameter 2: TRUE 
  'F' vs. cubature using method = "SV" ... TRUE 
  'Fcircle' vs. cubature using method = "SV" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "SV" ... TRUE 
  'F' vs. cubature using method = "midpoint" ... TRUE 
  'Fcircle' vs. cubature using method = "midpoint" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "midpoint" ... 
  	siaf parameter 1: TRUE 
  	siaf parameter 2: TRUE 
  'F' vs. cubature using method = "SV" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "SV" ... 
  	siaf parameter 1: TRUE 
  	siaf parameter 2: TRUE 
  Loading required namespace: memoise
  'F' vs. cubature using method = "midpoint" ... TRUE 
  'Fcircle' vs. cubature using method = "midpoint" ... TRUE 
  'deriv' vs. numerical derivative ... TRUE 
  'Deriv' vs. cubature using method = "midpoint" ... 
  	siaf parameter 1: TRUE 
  	siaf parameter 2: TRUE 
  	siaf parameter 3: TRUE 
  
  test-siafs.R..................   72 tests [0;32mOK[0m  [0;34m4.4s[0m
  Loading required namespace: sf
  
  test-sts.R....................   27 tests [0;32mOK[0m  [0;34m2.5s[0m
  
  test-tiafs.R..................    6 tests [0;32mOK[0m  [0;34m1.2s[0m
  
  test-toLatex.sts.R............   12 tests [0;32mOK[0m  [0;34m4.9s[0m
  Loading objects:
    districtsD
    stateD
  marked point pattern of 2 types
  no epidemic component in model
  
  no numerical likelihood optimization, all parameters fixed:
   h.(Intercept) h.I(start/365) 
       -19.86017        0.00000 
  Warning in twinstim(endemic = ~offset(log(popdensity)) + I(start/365), data = imdepi0,  :
    non-finite log-likelihood
  
  Done.
  marked point pattern of 2 types
  no epidemic component in model
  
  no numerical likelihood optimization, all parameters fixed:
  h.(Intercept) 
       -14.8703 
  
  Done.
  
  test-twinstim_misc.R..........    0 tests     [0;34m2.2s[0m
  
  test-twinstim_score.R.........    6 tests [0;32mOK[0m  [0;34m1.7s[0m
  ----- FAILED[attr]: test-formatDate.R<53--55>
   call| expect_identical(dates[at2ndChange(x, xm1)], as.Date(c("2007-01-01", 
   call| -->    "2009-01-05", "2011-01-03")))
   diff| TRUE
  Error: 1 out of 325 tests failed
  Execution halted