Running ‘testthat.R’ [8s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyquant)
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following object is masked from 'package:base':
  
      date
  
  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
  Version 0.4-0 included new data defaults. See ?getSymbols.
  Loading required package: tidyverse
  ── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
  ✔ ggplot2 2.2.1     ✔ purrr   0.2.4
  ✔ tibble  1.4.2     ✔ dplyr   0.7.4
  ✔ tidyr   0.8.0     ✔ stringr 1.3.0
  ✔ readr   1.1.1     ✔ forcats 0.3.0
  ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
  ✖ lubridate::as.difftime() masks base::as.difftime()
  ✖ lubridate::date()        masks base::date()
  ✖ 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()
  ✖ dplyr::matches()         masks testthat::matches()
  ✖ lubridate::setdiff()     masks base::setdiff()
  ✖ lubridate::union()       masks base::union()
  > 
  > test_check("tidyquant")
  ── 1. Failure: Test 1 returns tibble with correct rows and columns. (@test_tq_ge
  nrow(test1) not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ── 2. Failure: Test 2 returns tibble with correct rows and columns. (@test_tq_ge
  nrow(test2) not equal to 2.
  1/1 mismatches
  [1] 0 - 2 == -2
  
  ── 3. Failure: Test 3 returns tibble with correct rows and columns. (@test_tq_ge
  nrow(test3) not equal to 3.
  1/1 mismatches
  [1] 0 - 3 == -3
  
  ── 4. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_
  `test1` inherits from `logical` not `tbl`.
  
  ── 5. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_
  `test2` inherits from `logical` not `tbl`.
  
  ── 6. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_
  nrow(test1) not equal to 3.
  target is NULL, current is numeric
  
  ── 7. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_
  ncol(test1) not equal to 3.
  target is NULL, current is numeric
  
  ── 8. Failure: Test 3 returns tibble with correct rows and columns. (@test_tq_ge
  nrow(test3) not equal to 208.
  1/1 mismatches
  [1] 0 - 208 == -208
  
  ── 9. Failure: Test 3 returns tibble with correct rows and columns. (@test_tq_ge
  ncol(test3) not equal to 7.
  1/1 mismatches
  [1] 1 - 7 == -6
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 144 SKIPPED: 2 FAILED: 9
  1. Failure: Test 1 returns tibble with correct rows and columns. (@test_tq_get_compound_getters.R#24) 
  2. Failure: Test 2 returns tibble with correct rows and columns. (@test_tq_get_compound_getters.R#33) 
  3. Failure: Test 3 returns tibble with correct rows and columns. (@test_tq_get_compound_getters.R#42) 
  4. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_financials.R#18) 
  5. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_financials.R#19) 
  6. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_financials.R#23) 
  7. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_financials.R#25) 
  8. Failure: Test 3 returns tibble with correct rows and columns. (@test_tq_get_stock_prices.R#40) 
  9. Failure: Test 3 returns tibble with correct rows and columns. (@test_tq_get_stock_prices.R#42) 
  
  Error: testthat unit tests failed
  Execution halted