* using log directory 'd:/Rcompile/CRANpkg/local/3.4/tidyquant.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'tidyquant/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'tidyquant' version '0.5.6' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'tidyquant' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [10s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [26s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [25s] ERROR Running 'testthat.R' [25s] 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 -- v ggplot2 3.1.1 v purrr 0.3.2 v tibble 2.1.1 v dplyr 0.8.0.1 v tidyr 0.8.3 v stringr 1.4.0 v readr 1.3.1 v forcats 0.4.0 -- Conflicts ------------------------------------------ tidyverse_conflicts() -- x lubridate::as.difftime() masks base::as.difftime() x lubridate::date() masks base::date() x dplyr::filter() masks stats::filter() x dplyr::first() masks xts::first() x lubridate::intersect() masks base::intersect() x purrr::is_null() masks testthat::is_null() x dplyr::lag() masks stats::lag() x dplyr::last() masks xts::last() x dplyr::matches() masks testthat::matches() x lubridate::setdiff() masks base::setdiff() x lubridate::union() masks base::union() > > test_check("tidyquant") -- 1. Failure: Test prints warning message on invalid x input. (@test_tq_get_sto `tq_get("XYZ", get = get)` did not produce any warnings. -- 2. Failure: Test returns NA on invalid x input. (@test_tq_get_stock_prices.R# suppressWarnings(tq_get("XYZ", get = get)) not equal to NA. Cols in y but not x: `NA`. Cols in x but not y: `date`, `low`, `volume`, `open`, `high`, `close`, `adjusted`. == testthat results =========================================================== OK: 124 SKIPPED: 1 WARNINGS: 0 FAILED: 2 1. Failure: Test prints warning message on invalid x input. (@test_tq_get_stock_prices.R#38) 2. Failure: Test returns NA on invalid x input. (@test_tq_get_stock_prices.R#42) Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [101s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR