Running ‘testthat.R’ [9s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(FoCo2)
  Loading required package: Matrix
  Loading required package: FoReco
  > 
  > test_check("FoCo2")
  Saving _problems/test-cs-22.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-81.R
  Saving _problems/test-cs-94.R
  Saving _problems/test-cs-127.R
  Saving _problems/test-cs-192.R
  Saving _problems/test-cs-202.R
  Saving _problems/test-cs-212.R
  Saving _problems/test-cs-222.R
  Saving _problems/test-cs-232.R
  Saving _problems/test-cs-242.R
  Saving _problems/test-cs-252.R
  Saving _problems/test-cs-262.R
  Saving _problems/test-cs-272.R
  [ FAIL 21 | WARN 4 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cs.R:16:5'): Optimal cross-sectional coherent combination ──────
  <functionNotFoundError/objectNotFoundError/error/condition>
  Error in `new_foreco_info(list(info = attr(reco_mat, "info"), framework = "Cross-sectional", forecast_horizon = NROW(reco_mat), comb = comb, cs_n = n, rfun = "csocc"))`: could not find function "new_foreco_info"
  Backtrace:
      ▆
   1. └─FoCo2::csocc(...) at test-cs.R:16:5
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:79:7'): Covariance check ────────────────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Error ('test-cs.R:87:5'): Optimal nonegative cross-sectional reconciliation ──
  <functionNotFoundError/objectNotFoundError/error/condition>
  Error in `new_foreco_info(list(info = attr(reco_mat, "info"), framework = "Cross-sectional", forecast_horizon = NROW(reco_mat), comb = comb, cs_n = n, rfun = "csocc"))`: could not find function "new_foreco_info"
  Backtrace:
      ▆
   1. └─FoCo2::csocc(...) at test-cs.R:87:5
  ── Error ('test-cs.R:121:5'): Optimal cross-sectional coherent combination with NA ──
  <functionNotFoundError/objectNotFoundError/error/condition>
  Error in `new_foreco_info(list(info = attr(reco_mat, "info"), framework = "Cross-sectional", forecast_horizon = NROW(reco_mat), comb = comb, cs_n = n, rfun = "csocc"))`: could not find function "new_foreco_info"
  Backtrace:
      ▆
   1. └─FoCo2::csocc(...) at test-cs.R:121:5
  ── Failure ('test-cs.R:184:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:194:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:204:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:214:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:224:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:234:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:244:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:254:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  ── Failure ('test-cs.R:264:5'): Covariance check with NA ───────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <functionNotFoundError> with message:
    could not find function "new_foreco_info"
  
  [ FAIL 21 | WARN 4 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted