CRAN Package Check Results for Package quantmod

Last updated on 2019-07-16 07:51:00 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4-15 15.62 74.48 90.10 NOTE
r-devel-linux-x86_64-debian-gcc 0.4-15 12.31 58.69 71.00 NOTE
r-devel-linux-x86_64-fedora-clang 0.4-15 103.34 OK
r-devel-linux-x86_64-fedora-gcc 0.4-15 102.28 OK
r-devel-windows-ix86+x86_64 0.4-15 34.00 83.00 117.00 OK
r-patched-linux-x86_64 0.4-15 13.74 75.49 89.23 NOTE
r-patched-solaris-x86 0.4-15 140.60 OK
r-release-linux-x86_64 0.4-15 12.89 74.65 87.54 NOTE
r-release-windows-ix86+x86_64 0.4-15 20.00 101.00 121.00 ERROR
r-release-osx-x86_64 0.4-15 OK
r-oldrel-windows-ix86+x86_64 0.4-15 26.00 82.00 108.00 OK
r-oldrel-osx-x86_64 0.4-15 OK

Check Details

Version: 0.4-15
Check: R code for possible problems
Result: NOTE
    Found the following calls to attach():
    File 'quantmod/R/attachSymbols.R':
     attach(NULL, pos = pos, name = DB$name)
     attach(NULL, pos = pos, name = DB$name)
    See section 'Good practice' in '?attach'.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.4-15
Check: tests
Result: ERROR
     Running 'test_chartSeries.R' [1s]
     Running 'test_getDividends.R' [1s]
     Running 'test_getSplits.R' [1s]
     Running 'test_getSymbols.R' [8s]
     Running 'tests.R' [2s]
    Running the tests in 'tests/test_getSymbols.R' failed.
    Complete output:
     > 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
     Registered S3 method overwritten by 'quantmod':
     method from
     as.zoo.data.frame zoo
     Version 0.4-0 included new data defaults. See ?getSymbols.
     >
     > # Checks for Alpha Vantage
     > apikey <- Sys.getenv("AV_API_KEY")
     > if (apikey != "") {
     + ibm_daily_unadj <- getSymbols("IBM", src = "av", api.key = apikey,
     + adjusted = FALSE, periodicity = "daily", auto.assign = FALSE)
     + ibm_daily_adj <- getSymbols("IBM", src = "av", api.key = apikey,
     + adjusted = TRUE, periodicity = "daily", auto.assign = FALSE)
     + stopifnot(has.Ad(ibm_daily_adj))
     +
     + ibm_weekly_unadj <- getSymbols("IBM", src = "av", api.key = apikey,
     + adjusted = FALSE, periodicity = "weekly", auto.assign = FALSE)
     + ibm_weekly_adj <- getSymbols("IBM", src = "av", api.key = apikey,
     + adjusted = TRUE, periodicity = "weekly", auto.assign = FALSE)
     + stopifnot(has.Ad(ibm_weekly_adj))
     +
     + ibm_monthly_unadj <- getSymbols("IBM", src = "av", api.key = apikey,
     + adjusted = FALSE, periodicity = "monthly", auto.assign = FALSE)
     + ibm_monthly_adj <- getSymbols("IBM", src = "av", api.key = apikey,
     + adjusted = TRUE, periodicity = "monthly", auto.assign = FALSE)
     + stopifnot(has.Ad(ibm_monthly_adj))
     + }
     >
     > # Checks to ensure caught errors do not prevent other symbols from loading.
     > # Use one symbol that always works (e.g. from disk) and another that fails.
     > data(sample_matrix, package = "xts")
     > IBM <- as.xts(sample_matrix)
     > cn <- c("Open", "High", "Low", "Close")
     >
     > td <- tempdir()
     > tf <- file.path(td, "IBM.rda")
     > save(IBM, file = tf)
     > tf <- file.path(td, "IBM.csv")
     > write.zoo(IBM, file = tf, sep = ",")
     > rm(IBM)
     >
     > e <- new.env()
     >
     > x <- try({
     + getSymbols("IBM;WYSIWYG", env = e, src = "csv", dir = td, col.names = cn)
     + }, silent = TRUE)
     '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.
    
    
     file WYSIWYG.csv does not exist in D:\temp\RtmpgtjUYS ....skipping
     > stopifnot(exists("IBM", e))
     > rm(IBM, pos = e)
     >
     > x <- try({
     + getSymbols("IBM;WYSIWYG", env = e, src = "rda", dir = td, col.names = cn)
     + }, silent = TRUE)
    
     file WYSIWYG.rda does not exist in D:\temp\RtmpgtjUYS ....skipping
     > stopifnot(exists("IBM", e))
     > rm(IBM, pos = e)
     >
     > x <- try({
     + getSymbols("IBM;WYSIWYG", env = e, src = "yahoo")
     + }, silent = TRUE)
     Warning: WYSIWYG download failed; trying again.
     Warning: Unable to import "WYSIWYG".
     WYSIWYG download failed after two attempts. Error message:
     HTTP error 404.
     > stopifnot(exists("IBM", e))
     > rm(IBM, pos = e)
     >
     > if (apikey != "") {
     + x <- try({
     + getSymbols("IBM;WYSIWYG", env = e, src = "av", api.key = apikey)
     + }, silent = TRUE)
     + stopifnot(exists("IBM", e))
     + rm(IBM, pos = e)
     + }
     >
     > x <- try({
     + getSymbols("DGS10;WYSIWYG", env = e, src = "FRED")
     + }, silent = TRUE)
     Warning: Unable to import "WYSIWYG".
     cannot open URL 'https://fred.stlouisfed.org/series/WYSIWYG/downloaddata/WYSIWYG.csv'
     Warning message:
     In download.file(url, destfile, method, quiet, mode, cacheOK, extra) :
     cannot open URL 'https://fred.stlouisfed.org/series/WYSIWYG/downloaddata/WYSIWYG.csv': HTTP status was '404 Not Found'
     > stopifnot(exists("DGS10", e))
     > rm(DGS10, pos = e)
     >
     > x <- try({
     + getSymbols("EUR/USD;WYS/WYG", env = e, src = "oanda")
     + }, silent = TRUE)
     Warning: Unable to import "EUR/USD".
     HTTP error 404.
     Warning: Unable to import "WYS/WYG".
     HTTP error 404.
     > stopifnot(exists("EURUSD", e))
     Error: exists("EURUSD", e) is not TRUE
     Execution halted
Flavor: r-release-windows-ix86+x86_64