Running ‘testthat.R’ [17s/37s]
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
  ══ Need to Learn tidyquant? ════════════════════════════════════════════════════
  Business Science offers a 1-hour course - Learning Lab #9: Performance Analysis & Portfolio Optimization with tidyquant!
  </> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
  > library(tidyverse)
  ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
  ✔ ggplot2 3.3.3     ✔ purrr   0.3.4
  ✔ tibble  3.0.6     ✔ dplyr   1.0.4
  ✔ tidyr   1.1.2     ✔ stringr 1.4.0
  ✔ readr   1.4.0     ✔ forcats 0.5.1
  ── 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 tidyr::matches(), testthat::matches()
  ✖ lubridate::setdiff()     masks base::setdiff()
  ✖ lubridate::union()       masks base::union()
  > library(dplyr)
  > library(tibble)
  > 
  > test_check("tidyquant")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (2)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-tq_get_economic_data.R:12:1): (code run outside of `test_that()`) ──
  x = 'CPIAUCSL', get = 'economic.data': Error in getSymbols.FRED(Symbols = "CPIAUCSL", env = <environment>, verbose = FALSE, : Unable to import "CPIAUCSL".
  Timeout was reached: [fred.stlouisfed.org] Connection timed out after 10001 milliseconds
  
  Backtrace:
   1. tidyquant::tq_get(...) test-tq_get_economic_data.R:12:0
   2. tidyquant:::tq_get_base(...)
   3. tidyquant:::tq_get_util_1(x, get, ...)
   4. base::tryCatch(...)
   5. base:::tryCatchList(expr, classes, parentenv, handlers)
   6. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7. value[[3L]](cond)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-tq_get_economic_data.R:21:5): Test returns tibble with correct rows and columns. ──
  `test2` inherits from `logical` not `tbl`.
  ── Failure (test-tq_get_economic_data.R:23:5): Test returns tibble with correct rows and columns. ──
  `test1` not identical to `test2`.
  Modes: list, logical
  names for target but not for current
  Attributes: < Modes: list, NULL >
  Attributes: < names for target but not for current >
  Attributes: < current is not list-like >
  Length mismatch: comparison on first 1 components
  Component 1: Modes: character, logical
  Component 1: Lengths: 6, 1
  Component 1: target is character, current is logical
  
  [ FAIL 2 | WARN 1 | SKIP 2 | PASS 99 ]
  Error: Test failures
  In addition: Warning messages:
  1: In NCOL(x) :
    closing unused connection 8 (https://query2.finance.yahoo.com/v7/finance/download/XYZ?period1=1293840000&period2=1613174400&interval=1d&events=history&crumb=B2z84LyzxR9)
  2: In NCOL(x) :
    closing unused connection 7 (https://query2.finance.yahoo.com/v7/finance/download/XYZ?period1=1293840000&period2=1613174400&interval=1d&events=history&crumb=vfRvO0/eXnO)
  3: In NCOL(x) :
    closing unused connection 6 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
  4: In NCOL(x) :
    closing unused connection 5 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
  5: In NCOL(x) :
    closing unused connection 4 (https://fred.stlouisfed.org/series/CPIAUCSL/downloaddata/CPIAUCSL.csv)
  Execution halted