Running 'spelling.R' [0s]
  Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(VC2copula)
  Loading required package: copula
  > 
  > test_check("VC2copula")
  [1] "The BB6 or survival BB6 copula cannot be used for negatively dependent data."
  [1] "The rotated BB6 copulas cannot be used for positively dependent data."
  [1] "The rotated BB8 copulas cannot be used for positively dependent data."
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 557 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bivariate-models.R:34:7'): Bivariate model tCopula works ───────
  Error in `optim(start, logL, lower = lower, upper = upper, method = optim.method, 
      control = control, copula = copula, u = u)`: non-finite finite-difference value [2]
  Backtrace:
      ▆
   1. ├─testthat::expect_true(class(fitCopula(cop, u)@copula) == model) at test-bivariate-models.R:34:7
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─copula::fitCopula(cop, u)
   5. └─copula::fitCopula(cop, u)
   6.   └─copula (local) .local(copula, data, ...)
   7.     ├─(if (hideWarnings) suppressWarnings else identity)(...)
   8.     └─copula:::fitCopula.ml(...)
   9.       └─stats::optim(...)
  ── Error ('test-vine-models.R:12:3'): Vine copula models work ──────────────────
  Error in `validObject(.Object)`: invalid class "vineCopula" object: 1: invalid object for slot "parameters" in class "vineCopula": got class "matrix", should be or extend class "numeric"
  invalid class "vineCopula" object: 2: invalid object for slot "param.names" in class "vineCopula": got class "matrix", should be or extend class "character"
  invalid class "vineCopula" object: 3: invalid object for slot "param.lowbnd" in class "vineCopula": got class "matrix", should be or extend class "numeric"
  invalid class "vineCopula" object: 4: invalid object for slot "param.upbnd" in class "vineCopula": got class "matrix", should be or extend class "numeric"
  Backtrace:
      ▆
   1. ├─copula::fitCopula(cop, u) at test-vine-models.R:12:3
   2. └─VC2copula (local) fitCopula(cop, u)
   3.   └─VC2copula (local) .local(copula, data, ...)
   4.     └─VC2copula::vineCopula(RVM)
   5.       └─methods::new(...)
   6.         ├─methods::initialize(value, ...)
   7.         └─methods::initialize(value, ...)
   8.           └─methods::validObject(.Object)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 557 ]
  Error: Test failures
  Execution halted