Running ‘testthat.R’ [45s/49s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(attrib)
  attrib 2021.1.2 https://folkehelseinstituttet.github.io/attrib
  > 
  > test_check("attrib")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%[ FAIL 2 | WARN 0 | SKIP 0 | PASS 1 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_fake.R:87:3'): Attributable numbers ────────────────────────────
  Error in `crossprod(PR$Lambdat, object@u)`: "crossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─attrib::est_attrib(fit, data, exposures = exposures, n_sim = 500) at test_fake.R:87:2
   2.   └─attrib::sim(fit, data_tot, n_sim)
   3.     ├─arm::sim(fit, n.sims = n_sim)
   4.     └─arm::sim(fit, n.sims = n_sim)
   5.       └─arm (local) .local(object, ...)
   6.         ├─lme4::getME(regression, "b")
   7.         └─lme4:::getME.merMod(regression, "b")
  ── Error ('test_fake.R:140:3'): simmulations ───────────────────────────────────
  Error in `crossprod(PR$Lambdat, object@u)`: "crossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─attrib::est_attrib(fit, data, exposures, n_sim = 500) at test_fake.R:140:2
   2.   └─attrib::sim(fit, data_tot, n_sim)
   3.     ├─arm::sim(fit, n.sims = n_sim)
   4.     └─arm::sim(fit, n.sims = n_sim)
   5.       └─arm (local) .local(object, ...)
   6.         ├─lme4::getME(regression, "b")
   7.         └─lme4:::getME.merMod(regression, "b")
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1 ]
  Error: Test failures
  Execution halted