Running ‘testthat.R’ [19s/50s]
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 2.2.1     ✔ purrr   0.2.4
  ✔ tibble  1.3.4     ✔ dplyr   0.7.4
  ✔ tidyr   0.7.2     ✔ stringr 1.2.0
  ✔ readr   1.1.1     ✔ forcats 0.2.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()
  
  Attaching package: 'tidyquant'
  
  The following object is masked from 'package:dplyr':
  
      as_tibble
  
  The following object is masked from 'package:tibble':
  
      as_tibble
  
  > 
  > test_check("tidyquant")
  'getSymbols' currently uses auto.assign=TRUE by default, but will
  use auto.assign=FALSE in 0.5-0. You will still be able to use
  'loadSymbols' to automatically load data. getOption("getSymbols.env")
  and getOption("getSymbols.auto.assign") will still be 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 details.
  
  WARNING: There have been significant changes to Yahoo Finance data.
  Please see the Warning section of '?getSymbols.yahoo' for details.
  
  This message is shown once per session and may be disabled by setting
  options("getSymbols.yahoo.warning"=FALSE).
  1. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_stats.R#15) 
  `test1` inherits from `logical` not `tbl`.
  
  
  2. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_stats.R#17) 
  nrow(test1) not equal to 1.
  target is NULL, current is numeric
  
  
  3. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_stats.R#19) 
  ncol(test1) not equal to 55.
  target is NULL, current is numeric
  
  
  testthat results ================================================================
  OK: 155 SKIPPED: 2 FAILED: 3
  1. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_stats.R#15) 
  2. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_stats.R#17) 
  3. Failure: Test returns tibble with correct rows and columns. (@test_tq_get_key_stats.R#19) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In download.file(url, destfile = tmp, quiet = TRUE) :
    cannot open URL 'http://download.finance.yahoo.com/d/quotes.csv?s=AAPL&f=aa2a5bb4b6c1c4dd1ee7e8e9f6ghjj1j2j4j5j6kk3k4k5ll1mm3m4m5m6m7m8nopp2p5p6qrr1r5r6r7s6s7t8vwxy&e=.csv': HTTP status was '403 Forbidden'
  2: x = 'AAPL', get = 'key.stats': Error in download.file(url, destfile = tmp, quiet = TRUE): cannot open URL 'http://download.finance.yahoo.com/d/quotes.csv?s=AAPL&f=aa2a5bb4b6c1c4dd1ee7e8e9f6ghjj1j2j4j5j6kk3k4k5ll1mm3m4m5m6m7m8nopp2p5p6qrr1r5r6r7s6s7t8vwxy&e=.csv'
   
  Execution halted