Running ‘testthat.R’ [12s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(modmarg)
  > 
  > test_check("modmarg")
  ── 1. Failure: Missing covariate, outcome, and weight data (@test_glm_weights.R#
  z1$Label not equal to as.factor(c("treatment = 0", "treatment = 1")).
  Types not compatible: character is not integer
  
  ── 2. Failure: 2SLS margins are correct (@test_ivreg.R#94)  ────────────────────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 3. Failure: 2SLS margins are correct (@test_ivreg.R#122)  ───────────────────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 4. Failure: 2SLS margins handle weights (@test_ivreg.R#161)  ────────────────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 5. Failure: 2SLS margins handle weights (@test_ivreg.R#189)  ────────────────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 6. Failure: 2SLS margins handle missing covariates (@test_ivreg.R#246)  ─────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 7. Failure: 2SLS margins handle missing covariates (@test_ivreg.R#266)  ─────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 8. Failure: 2SLS margins handle missing weights (@test_ivreg.R#306)  ────────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 9. Failure: 2SLS margins handle missing weights (@test_ivreg.R#333)  ────────
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 10. Failure: 2SLS margins handle missing weights and covariates (@test_ivreg.
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ── 11. Failure: 2SLS margins handle missing weights and covariates (@test_ivreg.
  z$Label not equal to as.factor(paste("actual =", c(0, 1))).
  Types not compatible: character is not integer
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 267 | SKIPPED: 0 | WARNINGS: 38 | FAILED: 11 ]
  1. Failure: Missing covariate, outcome, and weight data (@test_glm_weights.R#539) 
  2. Failure: 2SLS margins are correct (@test_ivreg.R#94) 
  3. Failure: 2SLS margins are correct (@test_ivreg.R#122) 
  4. Failure: 2SLS margins handle weights (@test_ivreg.R#161) 
  5. Failure: 2SLS margins handle weights (@test_ivreg.R#189) 
  6. Failure: 2SLS margins handle missing covariates (@test_ivreg.R#246) 
  7. Failure: 2SLS margins handle missing covariates (@test_ivreg.R#266) 
  8. Failure: 2SLS margins handle missing weights (@test_ivreg.R#306) 
  9. Failure: 2SLS margins handle missing weights (@test_ivreg.R#333) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted