Running ‘testthat.R’ [10s/24s]
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 3.1.0       ✔ purrr   0.3.2  
  ✔ tibble  2.1.1       ✔ dplyr   0.8.0.1
  ✔ tidyr   0.8.3       ✔ stringr 1.4.0  
  ✔ readr   1.3.1       ✔ forcats 0.4.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 prints warning message on invalid x input. (@test_tq_get_com
  `c("AAPL", "XYZ") %>% tq_get(get = get)` did not produce any warnings.
  
  ── 2. Failure: Test prints warning message on invalid x input. (@test_tq_get_com
  `c("AAPL", "XYZ") %>% tq_get(get = get, complete_cases = FALSE)` did not produce any warnings.
  
  ── 3. Failure: Test prints warning message on invalid x input. (@test_tq_get_sto
  `tq_get("XYZ", get = get)` did not produce any warnings.
  
  ── 4. Failure: Test returns NA on invalid x input. (@test_tq_get_stock_prices.R#
  suppressWarnings(tq_get("XYZ", get = get)) not equal to NA.
  Cols in y but not x: `NA`. 
  Cols in x but not y: `volume`, `close`, `low`, `high`, `open`, `adjusted`, `date`. 
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 129 SKIPPED: 1 FAILED: 4
  1. Failure: Test prints warning message on invalid x input. (@test_tq_get_compound_getters.R#57) 
  2. Failure: Test prints warning message on invalid x input. (@test_tq_get_compound_getters.R#68) 
  3. Failure: Test prints warning message on invalid x input. (@test_tq_get_stock_prices.R#38) 
  4. Failure: Test returns NA on invalid x input. (@test_tq_get_stock_prices.R#42) 
  
  Error: testthat unit tests failed
  Execution halted