Running ‘testthat.R’ [18s/45s]
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.3     ✔ readr   2.1.4
  ✔ forcats 1.0.0     ✔ stringr 1.5.0
  ✔ 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 3 | WARN 1 | SKIP 2 | PASS 92 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-index-tq_index.R:17:5', 'test-index_tq_exchange.R:20:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── 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
  
  [ FAIL 3 | WARN 1 | SKIP 2 | PASS 92 ]
  Error: Test failures
  Execution halted