Running ‘testthat.R’ [5s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ptable)
  
  Attaching package: 'ptable'
  
  The following object is masked from 'package:graphics':
  
      plot
  
  The following object is masked from 'package:base':
  
      plot
  
  > 
  > test_check("ptable")
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Ignoring argument `step` for freqency tables
  Ignoring argument `step` for freqency tables
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Ignoring argument `step` for freqency tables
  Ignoring argument `step` for freqency tables
  Ignoring argument `step` for freqency tables
  Ignoring argument `step` for freqency tables
  Ignoring argument `step` for freqency tables
  
  Row 2: original frequency i = 1
  -------------------------------
  j1 01234
  j2 01234
  v  -10123
  i_char  1
  j_char  01234
  v_char  -10123
  i 1
  j 01234
  p_init 00000
  p_lb 0.000000010.000000010.000000010.000000010.00000001
  p_ub 11111
  
  pstay 000
  epsilon 0.00000001
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  p_new:11111
  $p_mean
       [,1]
  [1,]    5
  
  $p_var
       [,1]
  [1,]   15
  
  $p_sum
  [1] 5
  
  $p_stay
  [1] 1
  
  Variable 1 - Iter 1
  check_var: TRUE
  check_pstay: TRUE
  p_lb for p_stay: 0.00000001
  Sum of p: 0
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  There are 11 consecutive intervals with identical noise. You can try another 
            'seed' or proceed. At least, check whether the modified ptable has 
            sufficiently rearranged sub-intervals.
  
   NOTE for Tau-Argus: 
            Please use a new Tau-Argus Release (>= 4.2.3).
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 32 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-examples.R:10:3'): Example is correct ──────────────────────────
  Error: The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=2, V=1.05, js=1 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-examples.R:10:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ptable::pt_ex_cnts()
   5.   └─ptable::create_cnt_ptable(...)
   6.     └─ptable::create_ptable(...)
   7.       └─ptable:::pt_create_pTable(...)
  ── Error ('test-functions.R:2:1'): (code run outside of `test_that()`) ─────────
  Error: The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  Backtrace:
      ▆
   1. └─ptable::create_cnt_ptable(D = 3, V = 1) at test-functions.R:2:1
   2.   └─ptable::create_ptable(...)
   3.     └─ptable:::pt_create_pTable(...)
  ── Failure ('test-params.R:117:3'): pt_create_pTable() is ok ───────────────────
  Expected `pt_create_pTable(params = para1, debugging = TRUE, monitoring = TRUE)` to run without any errors.
  i Actually got a <simpleError> with text:
    The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  ── Failure ('test-params.R:148:3'): modify_cnt_ptable() is ok ──────────────────
  Expected `modify_cnt_ptable(...)` to run without any errors.
  i Actually got a <simpleError> with text:
    The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  ── Failure ('test-params.R:153:3'): modify_cnt_ptable() is ok ──────────────────
  Expected `modify_cnt_ptable(...)` to run without any errors.
  i Actually got a <simpleError> with text:
    The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  ── Error ('test-params.R:162:3'): modify_cnt_ptable() is ok ────────────────────
  Error: The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-params.R:162:3
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. ├─ptable::modify_cnt_ptable(pt_create_pTable(para1), 0.3, seed = 5467)
   8. └─ptable:::pt_create_pTable(para1)
  ── Failure ('test-params.R:168:3'): Testing different optim settings ───────────
  Expected `create_cnt_ptable(D = 3, V = 1, optim = 2)` to run without any errors.
  i Actually got a <simpleError> with text:
    The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  ── Failure ('test-params.R:169:3'): Testing different optim settings ───────────
  Expected `create_cnt_ptable(D = 3, V = 1, optim = 3)` to run without any errors.
  i Actually got a <simpleError> with text:
    The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  ── Failure ('test-params.R:192:13'): Testing if only ptable_params-class is generated and imported again ──
  Expected `create_ptable(params = para2)` to run without any errors.
  i Actually got a <simpleError> with text:
    The ptable can't be calculated without a violation of the constraints. The combination of the input parameters you set (e.g. D=3, V=1, js=0 or pstay) doesn't work. Please try another specification: either change the arguments 'mono=' or 'optim=' or try to use a different combination of input parameters (hint: changing the variance is sufficient in most cases).
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 32 ]
  Error: Test failures
  Execution halted