Running ‘testthat.R’ [18s/28s]
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 packages ─────────────────────────────────────── tidyverse 1.3.2 ──
  ✔ ggplot2 3.3.6     ✔ purrr   0.3.4
  ✔ tibble  3.1.8     ✔ dplyr   1.0.9
  ✔ tidyr   1.2.0     ✔ stringr 1.4.1
  ✔ readr   2.1.2     ✔ forcats 0.5.2
  ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
  ✖ lubridate::as.difftime() masks base::as.difftime()
  ✖ lubridate::date()        masks base::date()
  ✖ readr::edition_get()     masks testthat::edition_get()
  ✖ dplyr::filter()          masks stats::filter()
  ✖ dplyr::first()           masks xts::first()
  ✖ lubridate::intersect()   masks base::intersect()
  ✖ 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()
  ✖ lubridate::setdiff()     masks base::setdiff()
  ✖ lubridate::union()       masks base::union()
  > library(dplyr)
  > library(tibble)
  > 
  > test_check("tidyquant")
  [ FAIL 3 | WARN 6 | SKIP 2 | PASS 74 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── 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] 103 - 206 == -103
  ── Failure (test-tq_mutate.R:118:5): Test 5 returns tibble with correct rows and columns. ──
  nrow(test5) not equal to 504.
  1/1 mismatches
  [1] 252 - 504 == -252
  ── Error (test-tq_transmute.R:50: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_transmute.R:50:0
   2. └─tidyquant::tq_transmute(...)
   3.   ├─tidyquant::tq_transmute_(...)
   4.   └─tidyquant:::tq_transmute_.default(...)
  
  [ FAIL 3 | WARN 6 | SKIP 2 | PASS 74 ]
  Error: Test failures
  Execution halted