Running ‘testthat.R’ [197s/173s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(simPop)
  Loading required package: lattice
  Loading required package: vcd
  Loading required package: grid
  Loading required package: data.table
  Package simPop 1.1.0 has been loaded!
  
  Since simPop does explicit parallelization,
   the number of data.table threads is set to 1.
  > test_check("simPop")
  Starting simulated Annealing for Vorarlberg
  Starting simulated Annealing for Tyrol
  Cooldown number 10
  Cooldown number 10
  Cooldown number 20
  Cooldown number 20
  Convergence successfull for Tyrol 
  Convergence successfull for Vorarlberg 
  ── 1. Error: Test CalibPop - Comparison memory intense vs. memory saving method 
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: calibPop(simPop, split = "db040", temp = 1, eps.factor = 0.01) at testthat/test_calibPop.R:27
  2: data[, `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]])]
  3: `[.data.table`(data, , `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]]))
  
  Starting simulated Annealing for Tyrol
  Starting simulated Annealing for Vorarlberg
  Convergence successfull for Tyrol 
  Convergence successfull for Vorarlberg 
  ── 2. Error: Test CalibPop - check temp.factor (@test_calibPop.R#34)  ──────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: calibPop(simPop, split = "db040", temp = 1, eps.factor = 0.1, memory = TRUE, choose.temp.factor = 0.5) at testthat/test_calibPop.R:34
  2: data[, `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]])]
  3: `[.data.table`(data, , `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]]))
  
  Starting simulated Annealing for Tyrol
  Starting simulated Annealing for Vorarlberg
  Convergence successfull for Vorarlberg 
  Convergence successfull for Tyrol 
  ── 3. Error: Test CalibPop - check sizefactor (@test_calibPop.R#38)  ───────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: calibPop(simPop, split = "db040", temp = 1, eps.factor = 0.1, memory = TRUE, sizefactor = 5) at testthat/test_calibPop.R:38
  2: data[, `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]])]
  3: `[.data.table`(data, , `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]]))
  
  Starting simulated Annealing for Tyrol
  Starting simulated Annealing for Vorarlberg
  Convergence successfull for Vorarlberg 
  Convergence successfull for Tyrol 
  ── 4. Error: Test CalibPop - check scale.redraw (@test_calibPop.R#42)  ─────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: calibPop(simPop, split = "db040", temp = 1, eps.factor = 0.1, memory = TRUE, sizefactor = 5, 
         scale.redraw = 0.2) at testthat/test_calibPop.R:42
  2: data[, `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]])]
  3: `[.data.table`(data, , `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]]))
  
  Starting simulated Annealing for Tyrol
  Starting simulated Annealing for Vorarlberg
  Convergence successfull for Vorarlberg 
  Convergence successfull for Tyrol 
  ── 5. Error: Test CalibPop - check observe.break (@test_calibPop.R#47)  ────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: calibPop(simPop, split = "db040", temp = 1, eps.factor = 0.1, memory = TRUE, sizefactor = 5, 
         observe.break = 0) at testthat/test_calibPop.R:47
  2: data[, `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]])]
  3: `[.data.table`(data, , `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]]))
  
  Starting simulated Annealing for Tyrol
  Starting simulated Annealing for Vorarlberg
  Convergence successfull for Vorarlberg 
  Convergence successfull for Tyrol 
  ── 6. Error: Test CalibPop - check observe.times (@test_calibPop.R#52)  ────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: calibPop(simPop, split = "db040", temp = 1, eps.factor = 0.1, memory = TRUE, sizefactor = 5, 
         observe.times = 10) at testthat/test_calibPop.R:52
  2: data[, `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]])]
  3: `[.data.table`(data, , `:=`(doub, 1:.N), by = c(params[["pid"]], params[["hhid"]]))
  
  ── 7. Error: (unknown) (@test_ipu2.R#25)  ──────────────────────────────────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: eusilcS[, `:=`(regSamp, .N), by = state] at testthat/test_ipu2.R:25
  2: `[.data.table`(eusilcS, , `:=`(regSamp, .N), by = state) at testthat/test_ipu2.R:25
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 4 SKIPPED: 0 FAILED: 7
  1. Error: Test CalibPop - Comparison memory intense vs. memory saving method (@test_calibPop.R#27) 
  2. Error: Test CalibPop - check temp.factor (@test_calibPop.R#34) 
  3. Error: Test CalibPop - check sizefactor (@test_calibPop.R#38) 
  4. Error: Test CalibPop - check scale.redraw (@test_calibPop.R#42) 
  5. Error: Test CalibPop - check observe.break (@test_calibPop.R#47) 
  6. Error: Test CalibPop - check observe.times (@test_calibPop.R#52) 
  7. Error: (unknown) (@test_ipu2.R#25) 
  
  Error: testthat unit tests failed
  Execution halted