Running ‘testthat.R’ [48s/73s]
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: quantmod
  Loading required package: xts
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  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_key_ratios.R#16) 
  `test1` inherits from `logical` not `tbl`.
  
  
  2. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_ratios.R#18) 
  nrow(test1) not equal to 7.
  target is NULL, current is numeric
  
  
  3. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_ratios.R#20) 
  ncol(test1) not equal to 2.
  target is NULL, current is numeric
  
  
  4. Error: Test unnest returns correct rows. (@test_tq_get_key_ratios.R#25) -----
  no applicable method for 'unnest_' applied to an object of class "logical"
  1: expect_equal(nrow(unnest(test1)), 890) at testthat/test_tq_get_key_ratios.R:25
  2: compare(object, expected, ...)
  3: nrow(unnest(test1))
  4: unnest(test1)
  5: unnest_(data, dots, .drop = .drop, .id = .id, .sep = .sep)
  
  testthat results ================================================================
  OK: 145 SKIPPED: 1 FAILED: 4
  1. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_ratios.R#16) 
  2. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_ratios.R#18) 
  3. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_ratios.R#20) 
  4. Error: Test unnest returns correct rows. (@test_tq_get_key_ratios.R#25) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In value[[3L]](cond) : Error at AAPL during call to get = key.ratios
  Execution halted