Running 'testthat.R' [49s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tidyquant)
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  Loading required package: PerformanceAnalytics
  Loading required package: xts
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  
  Attaching package: 'PerformanceAnalytics'
  
  The following object is masked from 'package:graphics':
  
      legend
  
  Loading required package: quantmod
  Loading required package: TTR
  > library(tidyverse)
  ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
  ✔ dplyr   1.1.4     ✔ readr   2.1.4
  ✔ forcats 1.0.0     ✔ stringr 1.5.1
  ✔ ggplot2 3.4.4     ✔ tibble  3.2.1
  ✔ purrr   1.0.2     ✔ tidyr   1.3.0
  ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
  ✖ purrr::%||%()          masks base::%||%()
  ✖ readr::edition_get()   masks testthat::edition_get()
  ✖ dplyr::filter()        masks stats::filter()
  ✖ dplyr::first()         masks xts::first()
  ✖ purrr::is_null()       masks testthat::is_null()
  ✖ dplyr::lag()           masks stats::lag()
  ✖ dplyr::last()          masks xts::last()
  ✖ readr::local_edition() masks testthat::local_edition()
  ✖ dplyr::matches()       masks tidyr::matches(), testthat::matches()
  ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
  > library(dplyr)
  > library(tibble)
  > 
  > test_check("tidyquant")
  [ FAIL 13 | WARN 9 | SKIP 3 | PASS 28 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-index-tq_index.R:17:5', 'test-index_tq_exchange.R:20:5'
  • On Windows (1): 'test-index_tq_exchange.R:34:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-tq_get_economic_data.R:20:5'): Test returns tibble with correct rows and columns. ──
  `test1` inherits from `'logical'` not `'character'`.
  ── Failure ('test-tq_get_economic_data.R:21:5'): Test returns tibble with correct rows and columns. ──
  `test2` inherits from `'logical'` not `'character'`.
  ── Failure ('test-tq_get_economic_data.R:25:5'): Test returns tibble with correct rows and columns. ──
  nrow(test1) not equal to 6.
  target is NULL, current is numeric
  ── Failure ('test-tq_get_economic_data.R:27:5'): Test returns tibble with correct rows and columns. ──
  ncol(test1) not equal to 3.
  target is NULL, current is numeric
  ── Failure ('test-tq_get_stock_prices.R:17:5'): Test 1 returns tibble with correct rows and columns. ──
  `test1` inherits from `'logical'` not `'character'`.
  ── Failure ('test-tq_get_stock_prices.R:19:5'): Test 1 returns tibble with correct rows and columns. ──
  nrow(test1) not equal to 103.
  target is NULL, current is numeric
  ── Failure ('test-tq_get_stock_prices.R:21:5'): Test 1 returns tibble with correct rows and columns. ──
  ncol(test1) not equal to 8.
  target is NULL, current is numeric
  ── Failure ('test-tq_get_stock_prices.R:28:5'): Test 2 returns tibble with correct rows and columns. ──
  nrow(test2) not equal to 206.
  1/1 mismatches
  [1] 0 - 206 == -206
  ── Failure ('test-tq_get_stock_prices.R:30:5'): Test 2 returns tibble with correct rows and columns. ──
  ncol(test2) not equal to 8.
  1/1 mismatches
  [1] 2 - 8 == -6
  ── Error ('test-tq_mutate.R:9:1'): (code run outside of `test_that()`) ─────────
  Error in `tq_mutate_.default(data = data, select = lazyeval::expr_text(select), 
      mutate_fun = lazyeval::expr_text(mutate_fun), col_rename = col_rename, 
      ... = ...)`: data must be a tibble or data.frame object
  Backtrace:
      ▆
   1. ├─... %>% tq_mutate(open:close, OpCl) at test-tq_mutate.R:9:1
   2. ├─tidyquant::tq_mutate(., open:close, OpCl)
   3. │ └─tidyquant::tq_mutate_(...)
   4. ├─tidyquant::tq_mutate(., high:close, BBands)
   5. │ └─tidyquant::tq_mutate_(...)
   6. └─tidyquant::tq_mutate(., close, MACD)
   7.   ├─tidyquant::tq_mutate_(...)
   8.   └─tidyquant:::tq_mutate_.default(...)
  ── Error ('test-tq_performance.R:16:1'): (code run outside of `test_that()`) ───
  Error in `tq_transmute_.default(data = data, select = lazyeval::expr_text(select), 
      mutate_fun = lazyeval::expr_text(mutate_fun), col_rename = col_rename, 
      ... = ...)`: data must be a tibble or data.frame object
  Backtrace:
      ▆
   1. ├─... %>% ... at test-tq_performance.R:16:1
   2. └─tidyquant::tq_transmute(...)
   3.   ├─tidyquant::tq_transmute_(...)
   4.   └─tidyquant:::tq_transmute_.default(...)
  ── Error ('test-tq_portfolio.R:21:1'): (code run outside of `test_that()`) ─────
  Error in `get_col_name_date_or_date_time(data)`: No date or POSIXct column found in `data`.
  Backtrace:
      ▆
   1. └─tidyquant::tq_portfolio(...) at test-tq_portfolio.R:21:1
   2.   ├─tidyquant::tq_portfolio_(...)
   3.   └─tidyquant:::tq_portfolio_.grouped_df(...)
   4.     ├─tidyquant::tq_portfolio_(...)
   5.     └─tidyquant:::tq_portfolio_.tbl_df(...)
   6.       └─tidyquant:::tq_portfolio_base_(...)
   7.         └─tidyquant:::get_col_name_date_or_date_time(data)
  ── Error ('test-tq_transmute.R:9:1'): (code run outside of `test_that()`) ──────
  Error in `tq_transmute_.default(data = data, select = lazyeval::expr_text(select), 
      mutate_fun = lazyeval::expr_text(mutate_fun), col_rename = col_rename, 
      ... = ...)`: data must be a tibble or data.frame object
  Backtrace:
      ▆
   1. ├─AAPL %>% ... at test-tq_transmute.R:9:1
   2. └─tidyquant::tq_transmute(...)
   3.   ├─tidyquant::tq_transmute_(...)
   4.   └─tidyquant:::tq_transmute_.default(...)
  
  [ FAIL 13 | WARN 9 | SKIP 3 | PASS 28 ]
  Error: Test failures
  Execution halted