Running ‘tests.R’ [1s/2s]
Running the tests in ‘tests/tests.R’ failed.
Complete output:
  > # Call as.zoo before quantmod is loaded and registers its S3 method
  > dc <- c("2015-01-01", "2016-01-01", "2017-01-01")
  > dd <- as.Date(dc)
  > 
  > f <- data.frame(a = 1:3)
  > r <- f
  > rownames(r) <- dc
  > 
  > zz.f.date <- zoo::as.zoo(f, order.by = dd)
  > zz.f.char <- zoo::as.zoo(f, order.by = dc)
  > zz.f <- zoo::as.zoo(f)
  > 
  > zz.r.date <- zoo::as.zoo(r, order.by = dd)
  > zz.r.char <- zoo::as.zoo(r, order.by = dc)
  > zz.r <- zoo::as.zoo(r)
  > 
  > library(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.
  > 
  > ### quantmod:::as.zoo.data.frame
  > 
  > # should be the same as zoo:::as.zoo.data.frame when order.by is provided
  > stopifnot(identical(zz.f.char, as.zoo(f, order.by = dc)))
  > stopifnot(identical(zz.f.date, as.zoo(f, order.by = dd)))
  > stopifnot(identical(zz.r.char, as.zoo(r, order.by = dc)))
  > stopifnot(identical(zz.r.date, as.zoo(r, order.by = dd)))
  > 
  > # should not throw a warning
  > op.warn <- getOption("warn")
  > options(warn = 2)
  > quantmod::getSymbols("SPY", src = "google", from = Sys.Date() - 10)
  '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.
  Error in download.file(paste(google.URL, "q=", Symbols.name, "&startdate=",  : 
    (converted from warning) cannot open URL 'http://finance.google.com/finance/historical?q=SPY&startdate=Mar+12,+2018&enddate=Mar+22,+2018&output=csv': HTTP status was '403 Forbidden'
  Calls: <Anonymous> -> do.call -> getSymbols.google -> download.file
  Execution halted