Running ‘testthat.R’ [15s/43s]
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
  Loading tidyverse: ggplot2
  Loading tidyverse: tibble
  Loading tidyverse: tidyr
  Loading tidyverse: readr
  Loading tidyverse: purrr
  Loading tidyverse: dplyr
  Conflicts with tidy packages ---------------------------------------------------
  as.difftime(): lubridate, base
  date():        lubridate, base
  filter():      dplyr, stats
  first():       dplyr, xts
  intersect():   lubridate, base
  is_null():     purrr, testthat
  lag():         dplyr, stats
  last():        dplyr, xts
  matches():     dplyr, testthat
  setdiff():     lubridate, base
  union():       lubridate, base
  
  Attaching package: 'tidyquant'
  
  The following object is masked from 'package:tibble':
  
      as_tibble
  
  > 
  > test_check("tidyquant")
      As of 0.4-0, 'getSymbols' uses env=parent.frame() and
   auto.assign=TRUE by default.
  
   This  behavior  will be  phased out in 0.5-0  when the call  will
   default to use auto.assign=FALSE. getOption("getSymbols.env") and 
   getOptions("getSymbols.auto.assign") are now checked for alternate defaults
  
   This message is shown once per session and may be disabled by setting 
   options("getSymbols.warning4.0"=FALSE). See ?getSymbols for more details.
  1. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#20) 
  `test1` inherits from `logical` not `tbl`.
  
  
  2. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#21) 
  `test2` inherits from `logical` not `tbl`.
  
  
  3. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#25) 
  nrow(test1) not equal to 153.
  target is NULL, current is numeric
  
  
  4. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#27) 
  ncol(test1) not equal to 2.
  target is NULL, current is numeric
  
  
  5. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#20) 
  `test1` inherits from `logical` not `tbl`.
  
  
  6. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#21) 
  `test2` inherits from `logical` not `tbl`.
  
  
  7. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#25) 
  nrow(test1) not equal to 153.
  target is NULL, current is numeric
  
  
  8. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#27) 
  ncol(test1) not equal to 2.
  target is NULL, current is numeric
  
  
  testthat results ================================================================
  OK: 179 SKIPPED: 2 FAILED: 8
  1. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#20) 
  2. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#21) 
  3. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#25) 
  4. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_exchange_rates.R#27) 
  5. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#20) 
  6. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#21) 
  7. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#25) 
  8. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_metal_prices.R#27) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: x = 'EUR/USD', get = 'exchange.rates': Error in charToDate(x): character string is not in a standard unambiguous format
   
  2: x = 'EUR/USD', get = 'exchange.rates': Error in charToDate(x): character string is not in a standard unambiguous format
   
  3: x = 'gold', get = 'metal.prices': Error in charToDate(x): character string is not in a standard unambiguous format
   
  4: x = 'gold', get = 'metal.prices': Error in charToDate(x): character string is not in a standard unambiguous format
   
  Execution halted