Running ‘testthat.R’ [17s/28s]
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(tidyquant)
  ── Attaching core tidyquant packages ──────────────────────── tidyquant 1.0.9 ──
  ✔ PerformanceAnalytics 2.0.8      ✔ quantmod             0.4.26
  ✔ TTR                  0.24.4     ✔ xts                  0.14.1
  ── Conflicts ────────────────────────────────────────── tidyquant_conflicts() ──
  ✖ zoo::as.Date()                 masks base::as.Date()
  ✖ zoo::as.Date.numeric()         masks base::as.Date.numeric()
  ✖ PerformanceAnalytics::legend() masks graphics::legend()
  ✖ quantmod::summary()            masks base::summary()
  ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
  > 
  > test_check("tidyquant")
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 61 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-index-tq_index.R:16:5', 'test-index_tq_exchange.R:18:5',
    'test-tq_portfolio.R:4:1', 'test-tq_transmute.R:2:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tq_performance.R:27:1'): (code run outside of `test_that()`) ───
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `dplyr::mutate(., nested.col = purrr::map(.x = data, .f = tq_performance_.tbl_df, 
      Ra = Ra, Rb = Rb, performance_fun = performance_fun, ...))`: ℹ In argument: `nested.col = purrr::map(...)`.
  ℹ In group 1: `symbol = "AAPL"`.
  Caused by error in `purrr::map()`:
  ℹ In index: 1.
  Caused by error in `.coefficients()`:
  ! "package:RobStatTM" %in% search() || requireNamespace("RobStatTM",  .... is not TRUE
  
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 61 ]
  Error: Test failures
  Execution halted