Running 'testthat.R' [5s/6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rcbalance)
  Loading required package: MASS
  Loading required package: plyr
  optmatch (>= 0.9-1) needed to run the rcbalance command.  Please load optmatch and agree to its academic license before calling rcbalance.
  > 
  > test_check("rcbalance")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 14 ]
  
  == Failed tests ================================================================
  -- Error (test-1tok.R:14:3): 1-to-k match produces k columns in matches matrix --
  Error in `.Fortran("relaxalg", nnodes, as.integer(length(startn)), as.integer(startn), 
      as.integer(endn), as.integer(cost), as.integer(ucap), as.integer(b), 
      x1 = integer(length(startn)), crash1 = as.integer(0), large1 = as.integer(.Machine$integer.max/4), 
      feasible1 = integer(1), NAOK = FALSE, DUP = TRUE, PACKAGE = "optmatch")`: "relaxalg" not available for .Fortran() for package "optmatch"
  Backtrace:
      x
   1. \-rcbalance::rcbalance(my.dist.struct, k = 2) at test-1tok.R:14:2
   2.   \-rcbalance::callrelax(match.network)
  -- Error (test-1tok.R:21:3): 1-to-k match with refined balance has correct column count and table sums  --
  Error in `.Fortran("relaxalg", nnodes, as.integer(length(startn)), as.integer(startn), 
      as.integer(endn), as.integer(cost), as.integer(ucap), as.integer(b), 
      x1 = integer(length(startn)), crash1 = as.integer(0), large1 = as.integer(.Machine$integer.max/4), 
      feasible1 = integer(1), NAOK = FALSE, DUP = TRUE, PACKAGE = "optmatch")`: "relaxalg" not available for .Fortran() for package "optmatch"
  Backtrace:
      x
   1. \-rcbalance::rcbalance(...) at test-1tok.R:21:2
   2.   \-rcbalance::callrelax(match.network)
  -- Error (test-exclude_treated.R:15:1): (code run outside of `test_that()`) ----
  Error in `.Fortran("relaxalg", nnodes, as.integer(length(startn)), as.integer(startn), 
      as.integer(endn), as.integer(cost), as.integer(ucap), as.integer(b), 
      x1 = integer(length(startn)), crash1 = as.integer(0), large1 = as.integer(.Machine$integer.max/4), 
      feasible1 = integer(1), NAOK = FALSE, DUP = TRUE, PACKAGE = "optmatch")`: "relaxalg" not available for .Fortran() for package "optmatch"
  Backtrace:
      x
   1. \-rcbalance::rcbalance(my.dist.struct, exclude.treated = TRUE) at test-exclude_treated.R:15:0
   2.   \-rcbalance::callrelax(match.network)
  -- Error (test-precision.R:16:1): (code run outside of `test_that()`) ----------
  Error in `.Fortran("relaxalg", nnodes, as.integer(length(startn)), as.integer(startn), 
      as.integer(endn), as.integer(cost), as.integer(ucap), as.integer(b), 
      x1 = integer(length(startn)), crash1 = as.integer(0), large1 = as.integer(.Machine$integer.max/4), 
      feasible1 = integer(1), NAOK = FALSE, DUP = TRUE, PACKAGE = "optmatch")`: "relaxalg" not available for .Fortran() for package "optmatch"
  Backtrace:
      x
   1. \-rcbalance::rcbalance(...) at test-precision.R:16:0
   2.   \-rcbalance::callrelax(match.network)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted