Running 'testthat.R' [17s/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
  == 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.1 --
  v ggplot2 3.3.5     v purrr   0.3.4
  v tibble  3.1.6     v dplyr   1.0.7
  v tidyr   1.1.4     v stringr 1.4.0
  v readr   2.1.1     v forcats 0.5.1
  -- Conflicts ------------------------------------------ tidyverse_conflicts() --
  x lubridate::as.difftime() masks base::as.difftime()
  x lubridate::date()        masks base::date()
  x readr::edition_get()     masks testthat::edition_get()
  x dplyr::filter()          masks stats::filter()
  x dplyr::first()           masks xts::first()
  x lubridate::intersect()   masks base::intersect()
  x purrr::is_null()         masks testthat::is_null()
  x dplyr::lag()             masks stats::lag()
  x dplyr::last()            masks xts::last()
  x readr::local_edition()   masks testthat::local_edition()
  x dplyr::matches()         masks tidyr::matches(), testthat::matches()
  x lubridate::setdiff()     masks base::setdiff()
  x lubridate::union()       masks base::union()
  > library(dplyr)
  > library(tibble)
  > 
  > test_check("tidyquant")
  == Skipped tests ===============================================================
  * On CRAN (2)
  
  == Failed tests ================================================================
  -- Failure (test-tq_get_economic_data.R:20:5): Test returns tibble with correct rows and columns. --
  `test1` inherits from `'logical'` not `'character'`.
  -- Failure (test-tq_get_economic_data.R:21:5): Test returns tibble with correct rows and columns. --
  `test2` inherits from `'logical'` not `'character'`.
  -- Failure (test-tq_get_economic_data.R:25:5): Test returns tibble with correct rows and columns. --
  nrow(test1) not equal to 6.
  target is NULL, current is numeric
  -- Failure (test-tq_get_economic_data.R:27:5): Test returns tibble with correct rows and columns. --
  ncol(test1) not equal to 3.
  target is NULL, current is numeric
  
  [ FAIL 4 | WARN 2 | SKIP 2 | PASS 97 ]
  Error: Test failures
  In addition: Warning messages:
  1: In for (d in direct) { :
    closing unused connection 7 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
  2: In for (d in direct) { :
    closing unused connection 6 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
  3: In for (d in direct) { :
    closing unused connection 5 (https://fred.stlouisfed.org/series/CPIAUCSL/downloaddata/CPIAUCSL.csv)
  4: In for (d in direct) { :
    closing unused connection 4 (https://fred.stlouisfed.org/series/CPIAUCSL/downloaddata/CPIAUCSL.csv)
  5: In length(x) :
    closing unused connection 5 (https://query1.finance.yahoo.com/v7/finance/download/XYZ?period1=1325376000&period2=1642550400&interval=1d&events=history&crumb=6sX51IZXEuw)
  Execution halted