Running ‘testthat.R’ [494s/494s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dgo)
  Loading required package: dgodata
  Loading required package: rstan
  Loading required package: ggplot2
  Loading required package: StanHeaders
  rstan (Version 2.15.1, packaged: 2017-04-19 05:03:57 UTC, GitRev: 2e1f913d3ca3)
  For execution on a local, multicore CPU with excess RAM we recommend calling
  rstan_options(auto_write = TRUE)
  options(mc.cores = parallel::detectCores())
  > 
  > # https://stackoverflow.com/questions/12410694/rbundler-build-error-cannot-open-file-startup-rs-no-such-file-or-directory#27994299
  > Sys.setenv("R_TESTS" = "")
  > test_check("dgo")
  Applying restrictions, pass 1...
  	Dropped 5 rows for missingness in covariates
  	Dropped 3743 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Added 11 items from aggregate data.
  1. Failure: raking equalizes weights when they should be equal (@test-raking.r#204) 
  unique(wool_sums) has length 2, not length 1.
  
  
  Applying restrictions, pass 1...
  	Dropped 5 rows for missingness in covariates
  	Dropped 3743 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Added 12 items from aggregate data.
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  Applying restrictions, pass 1...
  	Dropped 3745 rows for lacking item responses
  Applying restrictions, pass 2...
  	No changes
  testthat results ================================================================
  OK: 269 SKIPPED: 0 FAILED: 1
  1. Failure: raking equalizes weights when they should be equal (@test-raking.r#204) 
  
  Error: testthat unit tests failed
  Execution halted