Running ‘testthat.R’ [94s/64s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mdgc)
  > 
  > test_check("mdgc")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-get-log-lm-terms.R:78:3): 'get_log_lm_terms' gives the correct result with and without gradients ──
  `val` not equal to -45.8852616647973.
  1/1 mismatches
  [1] -91.8 - -45.9 == -45.9
  ── Failure (test-get-log-lm-terms.R:82:3): 'get_log_lm_terms' gives the correct result with and without gradients ──
  `val` not equal to -45.8852616647973.
  1/1 mismatches
  [1] -92.4 - -45.9 == -46.5
  ── Error (test-get-log-lm-terms.R:84:3): 'get_log_lm_terms' gives the correct result with and without gradients ──
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. └─mdgc:::log_ml(pa, comp_derivs = TRUE) test-get-log-lm-terms.R:84:2
   2.   └─mdgc:::eval_log_lm_terms(...) test-get-log-lm-terms.R:66:4
  ── Failure (test-get-log-lm-terms.R:189:3): 'get_log_lm_terms' gives the correct result with and without gradients with multinomial variables ──
  `val` not equal to -62.496433767902.
  1/1 mismatches
  [1] -125 - -62.5 == -62.2
  ── Error (test-get-log-lm-terms.R:191:3): 'get_log_lm_terms' gives the correct result with and without gradients with multinomial variables ──
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. └─mdgc:::log_ml(pa, comp_derivs = TRUE) test-get-log-lm-terms.R:191:2
   2.   └─mdgc::mdgc_log_ml(...) test-get-log-lm-terms.R:179:4
   3.     └─mdgc:::.mdgc_log_ml(...)
   4.       └─mdgc:::eval_log_lm_terms(...)
  ── Failure (test-get-log-lm-terms.R:323:3): 'get_log_lm_terms' gives the correct result with and without gradients (ordinal and binary data) ──
  `val` not equal to -50.633131628025.
  1/1 mismatches
  [1] -104 - -50.6 == -53.6
  ── Failure (test-get-log-lm-terms.R:326:3): 'get_log_lm_terms' gives the correct result with and without gradients (ordinal and binary data) ──
  `val` not equal to -50.633131628025.
  1/1 mismatches
  [1] -104 - -50.6 == -52.9
  ── Error (test-get-log-lm-terms.R:328:3): 'get_log_lm_terms' gives the correct result with and without gradients (ordinal and binary data) ──
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. └─mdgc:::log_ml(par, comp_derivs = TRUE) test-get-log-lm-terms.R:328:2
   2.   └─mdgc:::eval_log_lm_terms(...) test-get-log-lm-terms.R:313:4
  ── Error (test-get-log-lm-terms.R:522:5): mdgc_log_ml gives the correct result with a single log marginal likelihood term ──
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. └─mdgc::mdgc_log_ml(...) test-get-log-lm-terms.R:522:4
   2.   └─mdgc:::.mdgc_log_ml(...)
   3.     └─mdgc:::eval_log_lm_terms(...)
  ── Error (test-man-files.R:15:3): mdgc examples gives the same ─────────────────
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
       █
    1. └─mdgc::mdgc(...) test-man-files.R:15:2
    2.   └─mdgc::mdgc_fit(...)
    3.     └─mdgc:::svrg(...)
    4.       └─base::sapply(...)
    5.         └─base::lapply(X = X, FUN = FUN, ...)
    6.           └─mdgc:::FUN(X[[i]], ...)
    7.             └─mdgc:::par_fn_wrap(...)
    8.               └─mdgc:::par_fn(...)
    9.                 └─mdgc:::.mdgc_log_ml(...)
   10.                   └─mdgc:::eval_log_lm_terms(...)
  ── Failure (test-man-files.R:49:3): iris examples give the same ────────────────
  mdgc_log_ml(ptr, start_vals, obj$means) not equal to `truth`.
  1/1 mismatches
  [1] -Inf - -622 == -Inf
  ── Error (test-man-files.R:51:3): iris examples give the same ──────────────────
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-man-files.R:51:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─mdgc::mdgc_log_ml(ptr, start_vals, obj$means, use_aprx = TRUE)
   5.   └─mdgc:::.mdgc_log_ml(...)
   6.     └─mdgc:::eval_log_lm_terms(...)
  ── Error (test-mdgc-fit.R:58:3): ADAM gives the same ───────────────────────────
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. └─mdgc::mdgc_fit(...) test-mdgc-fit.R:58:2
   2.   └─mdgc:::adam(...)
   3.     └─mdgc:::par_fn_wrap(...)
   4.       └─mdgc:::par_fn(...)
   5.         └─mdgc:::.mdgc_log_ml(...)
   6.           └─mdgc:::eval_log_lm_terms(...)
  ── Error (test-mdgc-fit.R:79:3): svrg gives the same ───────────────────────────
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. └─mdgc::mdgc_fit(...) test-mdgc-fit.R:79:2
   2.   └─mdgc:::svrg(...)
   3.     └─base::sapply(...)
   4.       └─base::lapply(X = X, FUN = FUN, ...)
   5.         └─mdgc:::FUN(X[[i]], ...)
   6.           └─mdgc:::par_fn_wrap(...)
   7.             └─mdgc:::par_fn(...)
   8.               └─mdgc:::.mdgc_log_ml(...)
   9.                 └─mdgc:::eval_log_lm_terms(...)
  ── Error (test-mdgc-impute.R:45:3): mdgc_impute gives the same as before and with and without reordering ──
  Error: Some exception occured. Further details cannot be provided because of https://stackoverflow.com/q/66362932/5861244.
  Backtrace:
      █
   1. └─mdgc::mdgc_impute(...) test-mdgc-impute.R:45:2
   2.   └─mdgc:::impute(...)
  
  [ FAIL 15 | WARN 0 | SKIP 1 | PASS 7 ]
  Error: Test failures
  Execution halted