Running ‘testthat.R’ [61s/74s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(portfolioBacktest)
  > 
  > test_check("portfolioBacktest")
  Saving _problems/test-portfolioBacktest-73.R
  Saving _problems/test-portfolioBacktest-74.R
  Saving _problems/test-portfolioBacktest-85.R
  Saving _problems/test-portfolioBacktest-86.R
  Saving _problems/test-portfolioBacktest-88.R
  Saving _problems/test-portfolioBacktest-111.R
  Saving _problems/test-portfolioBacktest-112.R
  [ FAIL 7 | WARN 2 | SKIP 0 | PASS 61 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-portfolioBacktest.R:73:3'): backtest results coincide with PerformanceAnalytics and base R ──
  Expected `ret_portfolioBacktest` to be equivalent to `PerfAnal$returns`.
  Numeric: lengths (80, 99) differ
  ── Failure ('test-portfolioBacktest.R:74:3'): backtest results coincide with PerformanceAnalytics and base R ──
  Expected `bt$Uniform$`dataset 1`$w_bop` to be equivalent to `PerfAnal$BOP.Weight`.
  Numeric: lengths (160, 198) differ
  ── Failure ('test-portfolioBacktest.R:85:3'): backtest results coincide with PerformanceAnalytics and base R ──
  Expected `ret_portfolioBacktest` to be equivalent to `PerfAnal$returns`.
  Numeric: lengths (80, 99) differ
  ── Failure ('test-portfolioBacktest.R:86:3'): backtest results coincide with PerformanceAnalytics and base R ──
  Expected `bt$GMVP$`dataset 1`$w_bop` to be equivalent to `PerfAnal$BOP.Weight[, 1:2]`.
  Numeric: lengths (160, 198) differ
  ── Failure ('test-portfolioBacktest.R:88:3'): backtest results coincide with PerformanceAnalytics and base R ──
  Expected `cash` to be equivalent to `as.vector(PerfAnal$BOP.Weight[, 3])`.
  Lengths differ: 80 is not 99
  ── Failure ('test-portfolioBacktest.R:111:3'): backtest results coincide with PerformanceAnalytics and base R ──
  Expected `bt_next_period$Uniform$`dataset 1`$return` to be equivalent to `PerfAnal_next_day$returns`.
  Numeric: lengths (79, 99) differ
  ── Failure ('test-portfolioBacktest.R:112:3'): backtest results coincide with PerformanceAnalytics and base R ──
  Expected `bt_next_period$Uniform$`dataset 1`$w_bop` to be equivalent to `PerfAnal_next_day$BOP.Weight`.
  Numeric: lengths (158, 198) differ
  
  [ FAIL 7 | WARN 2 | SKIP 0 | PASS 61 ]
  Error:
  ! Test failures.
  Execution halted