Package suggested but not available for checking: 'optmatch'
Running examples in 'matchMulti-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: matchMulti
> ### Title: A function that performs multilevel matching.
> ### Aliases: matchMulti
> 
> ### ** Examples
> 
> 	
> #toy example with short runtime
> library(matchMulti)
> 
> #Load Catholic school data
> data(catholic_schools)
> 
> # Trim data to speed up example
> catholic_schools <- catholic_schools[catholic_schools$female_mean >.45 &
+  catholic_schools$female_mean < .60,]
> 
> #match on a single covariate 
> student.cov <- c('minority')
> 
> match.simple <- matchMulti(catholic_schools, treatment = 'sector', 
+                              school.id = 'school', match.students = FALSE, 
+                              student.vars = student.cov, verbose=TRUE, tol=.01)
Warning in callrelax(match.network) :
  Package optmatch (>= 0.9-1) not loaded, so rcbalance could not perform the usual match; returning NULL.
Error in callrelax(match.network) : object 'cost' not found
Calls: matchMulti ... matchSchools -> rcbsubset -> <Anonymous> -> callrelax
Execution halted
Running 'testthat.R' [9s/13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(matchMulti)
  > 
  > test_check("matchMulti")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  == Failed tests ================================================================
  -- Error (test-multilevel.R:17:1): (code run outside of `test_that()`) ---------
  Error in `callrelax(match.network)`: object 'cost' not found
  Backtrace:
      x
   1. \-matchMulti::matchMulti(...) at test-multilevel.R:17:0
   2.   \-matchMulti::matchSchools(...)
   3.     \-rcbsubset::rcbsubset(dmat, exclude.penalty = penalty, tol = tol)
   4.       \-rcbalance::rcbalance(...)
   5.         \-rcbalance::callrelax(match.network)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted
Package suggested but not available for checking: ‘optmatch’
Running examples in ‘matchMulti-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: matchMulti
> ### Title: A function that performs multilevel matching.
> ### Aliases: matchMulti
> 
> ### ** Examples
> 
> 	
> #toy example with short runtime
> library(matchMulti)
> 
> #Load Catholic school data
> data(catholic_schools)
> 
> # Trim data to speed up example
> catholic_schools <- catholic_schools[catholic_schools$female_mean >.45 &
+  catholic_schools$female_mean < .60,]
> 
> #match on a single covariate 
> student.cov <- c('minority')
> 
> match.simple <- matchMulti(catholic_schools, treatment = 'sector', 
+                              school.id = 'school', match.students = FALSE, 
+                              student.vars = student.cov, verbose=TRUE, tol=.01)
Warning in callrelax(match.network) :
  Package optmatch (>= 0.9-1) not loaded, so rcbalance could not perform the usual match; returning NULL.
Error in callrelax(match.network) : object 'cost' not found
Calls: matchMulti ... matchSchools -> rcbsubset -> <Anonymous> -> callrelax
Execution halted
Running ‘testthat.R’ [7s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(matchMulti)
  > 
  > test_check("matchMulti")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-multilevel.R:17:1): (code run outside of `test_that()`) ─────────
  Error in `callrelax(match.network)`: object 'cost' not found
  Backtrace:
      ▆
   1. └─matchMulti::matchMulti(...) at test-multilevel.R:17:0
   2.   └─matchMulti::matchSchools(...)
   3.     └─rcbsubset::rcbsubset(dmat, exclude.penalty = penalty, tol = tol)
   4.       └─rcbalance::rcbalance(...)
   5.         └─rcbalance::callrelax(match.network)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted
Package suggested but not available for checking: ‘optmatch’
Namespace in Imports field not imported from: ‘Hmisc’
  All declared Imports should be used.
Package suggested but not available for checking: ‘optmatch’
Namespace in Imports field not imported from: ‘Hmisc’
  All declared Imports should be used.
Package suggested but not available for checking: 'optmatch'
Running examples in 'matchMulti-Ex.R' failed
The error most likely occurred in:

> ### Name: matchMulti
> ### Title: A function that performs multilevel matching.
> ### Aliases: matchMulti
> 
> ### ** Examples
> 
> 	
> #toy example with short runtime
> library(matchMulti)
> 
> #Load Catholic school data
> data(catholic_schools)
> 
> # Trim data to speed up example
> catholic_schools <- catholic_schools[catholic_schools$female_mean >.45 &
+  catholic_schools$female_mean < .60,]
> 
> #match on a single covariate 
> student.cov <- c('minority')
> 
> match.simple <- matchMulti(catholic_schools, treatment = 'sector', 
+                              school.id = 'school', match.students = FALSE, 
+                              student.vars = student.cov, verbose=TRUE, tol=.01)
Warning in callrelax(match.network) :
  Package optmatch (>= 0.9-1) not loaded, so rcbalance could not perform the usual match; returning NULL.
Error in callrelax(match.network) : object 'cost' not found
Calls: matchMulti ... matchSchools -> rcbsubset -> <Anonymous> -> callrelax
Execution halted
Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(matchMulti)
  > 
  > test_check("matchMulti")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-multilevel.R:17:1): (code run outside of `test_that()`) ─────────
  Error in `callrelax(match.network)`: object 'cost' not found
  Backtrace:
      ▆
   1. └─matchMulti::matchMulti(...) at test-multilevel.R:17:0
   2.   └─matchMulti::matchSchools(...)
   3.     └─rcbsubset::rcbsubset(dmat, exclude.penalty = penalty, tol = tol)
   4.       └─rcbalance::rcbalance(...)
   5.         └─rcbalance::callrelax(match.network)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted
Package suggested but not available for checking: ‘optmatch’
Running examples in ‘matchMulti-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: matchMulti
> ### Title: A function that performs multilevel matching.
> ### Aliases: matchMulti
> 
> ### ** Examples
> 
> 	
> #toy example with short runtime
> library(matchMulti)
> 
> #Load Catholic school data
> data(catholic_schools)
> 
> # Trim data to speed up example
> catholic_schools <- catholic_schools[catholic_schools$female_mean >.45 &
+  catholic_schools$female_mean < .60,]
> 
> #match on a single covariate 
> student.cov <- c('minority')
> 
> match.simple <- matchMulti(catholic_schools, treatment = 'sector', 
+                              school.id = 'school', match.students = FALSE, 
+                              student.vars = student.cov, verbose=TRUE, tol=.01)
Warning in callrelax(match.network) :
  Package optmatch (>= 0.9-1) not loaded, so rcbalance could not perform the usual match; returning NULL.
Error in callrelax(match.network) : object 'cost' not found
Calls: matchMulti ... matchSchools -> rcbsubset -> <Anonymous> -> callrelax
Execution halted
Running ‘testthat.R’ [8s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(matchMulti)
  > 
  > test_check("matchMulti")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-multilevel.R:17:1): (code run outside of `test_that()`) ─────────
  Error in `callrelax(match.network)`: object 'cost' not found
  Backtrace:
      ▆
   1. └─matchMulti::matchMulti(...) at test-multilevel.R:17:0
   2.   └─matchMulti::matchSchools(...)
   3.     └─rcbsubset::rcbsubset(dmat, exclude.penalty = penalty, tol = tol)
   4.       └─rcbalance::rcbalance(...)
   5.         └─rcbalance::callrelax(match.network)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted
Package suggested but not available for checking: ‘optmatch’
Running examples in ‘matchMulti-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: matchMulti
> ### Title: A function that performs multilevel matching.
> ### Aliases: matchMulti
> 
> ### ** Examples
> 
> 	
> #toy example with short runtime
> library(matchMulti)
> 
> #Load Catholic school data
> data(catholic_schools)
> 
> # Trim data to speed up example
> catholic_schools <- catholic_schools[catholic_schools$female_mean >.45 &
+  catholic_schools$female_mean < .60,]
> 
> #match on a single covariate 
> student.cov <- c('minority')
> 
> match.simple <- matchMulti(catholic_schools, treatment = 'sector', 
+                              school.id = 'school', match.students = FALSE, 
+                              student.vars = student.cov, verbose=TRUE, tol=.01)
Warning in callrelax(match.network) :
  Package optmatch (>= 0.9-1) not loaded, so rcbalance could not perform the usual match; returning NULL.
Error in callrelax(match.network) : object 'cost' not found
Calls: matchMulti ... matchSchools -> rcbsubset -> <Anonymous> -> callrelax
Execution halted
Running ‘testthat.R’ [8s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(matchMulti)
  > 
  > test_check("matchMulti")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-multilevel.R:17:1): (code run outside of `test_that()`) ─────────
  Error in `callrelax(match.network)`: object 'cost' not found
  Backtrace:
      ▆
   1. └─matchMulti::matchMulti(...) at test-multilevel.R:17:0
   2.   └─matchMulti::matchSchools(...)
   3.     └─rcbsubset::rcbsubset(dmat, exclude.penalty = penalty, tol = tol)
   4.       └─rcbalance::rcbalance(...)
   5.         └─rcbalance::callrelax(match.network)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted
Namespace in Imports field not imported from: ‘Hmisc’
  All declared Imports should be used.