* using log directory 'd:/Rcompile/CRANpkg/local/4.2/tidyquant.Rcheck' * using R version 4.2.1 (2022-06-23 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: UTF-8 * checking for file 'tidyquant/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'tidyquant' version '1.0.4' * 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 ... [12s] OK * checking Rd files ... [2s] 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 LazyData ... 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 ... [31s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [22s] ERROR Running 'testthat.R' [22s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(tidyquant) Loading required package: lubridate Attaching package: 'lubridate' The following objects are masked from 'package:base': date, intersect, setdiff, union 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 > library(tidyverse) ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ✔ tibble 3.1.8 ✔ dplyr 1.0.9 ✔ tidyr 1.2.0 ✔ stringr 1.4.0 ✔ readr 2.1.2 ✔ forcats 0.5.1 ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ── ✖ lubridate::as.difftime() masks base::as.difftime() ✖ lubridate::date() masks base::date() ✖ readr::edition_get() masks testthat::edition_get() ✖ 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() ✖ readr::local_edition() masks testthat::local_edition() ✖ dplyr::matches() masks tidyr::matches(), testthat::matches() ✖ lubridate::setdiff() masks base::setdiff() ✖ lubridate::union() masks base::union() > library(dplyr) > library(tibble) > > test_check("tidyquant") [ FAIL 3 | WARN 6 | SKIP 3 | PASS 73 ] ══ Skipped tests ═══════════════════════════════════════════════════════════════ • On CRAN (2) • On Windows (1) ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure (test-tq_get_stock_prices.R:28:5): Test 2 returns tibble with correct rows and columns. ── nrow(test2) not equal to 206. 1/1 mismatches [1] 103 - 206 == -103 ── Failure (test-tq_mutate.R:118:5): Test 5 returns tibble with correct rows and columns. ── nrow(test5) not equal to 504. 1/1 mismatches [1] 252 - 504 == -252 ── Error (test-tq_transmute.R:50:1): (code run outside of `test_that()`) ─────── Error in `tq_transmute_.default(data = data, select = lazyeval::expr_text(select), mutate_fun = lazyeval::expr_text(mutate_fun), col_rename = col_rename, ... = ...)`: data must be a tibble or data.frame object Backtrace: ▆ 1. ├─... %>% ... at test-tq_transmute.R:50:0 2. └─tidyquant::tq_transmute(...) 3. ├─tidyquant::tq_transmute_(...) 4. └─tidyquant:::tq_transmute_.default(...) [ FAIL 3 | WARN 6 | SKIP 3 | PASS 73 ] Error: Test failures In addition: Warning messages: 1: closing unused connection 5 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv) 2: closing unused connection 4 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [116s] ERROR Error(s) in re-building vignettes: --- re-building 'TQ00-introduction-to-tidyquant.Rmd' using rmarkdown Loading required package: lubridate Attaching package: 'lubridate' The following objects are masked from 'package:base': date, intersect, setdiff, union 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 ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ✔ tibble 3.1.8 ✔ dplyr 1.0.9 ✔ tidyr 1.2.0 ✔ stringr 1.4.0 ✔ readr 2.1.2 ✔ forcats 0.5.1 ── 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() ✖ dplyr::lag() masks stats::lag() ✖ dplyr::last() masks xts::last() ✖ lubridate::setdiff() masks base::setdiff() ✖ lubridate::union() masks base::union() --- finished re-building 'TQ00-introduction-to-tidyquant.Rmd' --- re-building 'TQ01-core-functions-in-tidyquant.Rmd' using rmarkdown Warning in fun_transmute(., OHLC = FALSE, ...) : missing values removed from data Warning: x = 'FB', get = 'stock.prices': Error in getSymbols.yahoo(Symbols = "FB", env = , verbose = FALSE, : Unable to import "FB". FB download failed after two attempts. Error message: HTTP error 404. Quitting from lines 363-371 (TQ01-core-functions-in-tidyquant.Rmd) Error: processing vignette 'TQ01-core-functions-in-tidyquant.Rmd' failed with diagnostics: data must be a tibble or data.frame object --- failed re-building 'TQ01-core-functions-in-tidyquant.Rmd' --- re-building 'TQ02-quant-integrations-in-tidyquant.Rmd' using rmarkdown Warning: Removed 20 row(s) containing missing values (geom_path). `geom_smooth()` using formula 'y ~ x' Warning: Removed 89 row(s) containing missing values (geom_path). --- finished re-building 'TQ02-quant-integrations-in-tidyquant.Rmd' --- re-building 'TQ03-scaling-and-modeling-with-tidyquant.Rmd' using rmarkdown Warning: Problem while computing `data.. = purrr::map(...)`. ℹ x = 'FB', get = 'stock.prices': Error in getSymbols.yahoo(Symbols = "FB", env = , verbose = FALSE, : Unable to import "FB". FB download failed after two attempts. Error message: HTTP error 404. Removing FB. Getting holdings for DOW Getting holdings for DOW `geom_smooth()` using formula 'y ~ x' Getting holdings for SP500 Warning: x = 'XYZ', get = 'stock.prices': Error in getSymbols.yahoo(Symbols = "XYZ", env = , verbose = FALSE, : Unable to import "XYZ". XYZ download failed after two attempts. Error message: HTTP error 404. --- finished re-building 'TQ03-scaling-and-modeling-with-tidyquant.Rmd' --- re-building 'TQ04-charting-with-tidyquant.Rmd' using rmarkdown `geom_smooth()` using formula 'y ~ x' `geom_smooth()` using formula 'y ~ x' `geom_smooth()` using formula 'y ~ x' --- finished re-building 'TQ04-charting-with-tidyquant.Rmd' --- re-building 'TQ05-performance-analysis-with-tidyquant.Rmd' using rmarkdown Warning: `spread_()` was deprecated in tidyr 1.2.0. Please use `spread()` instead. This warning is displayed once every 8 hours. Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated. Ungrouping data frame groups: symbol Warning: Problem while computing `nested.col = purrr::map(...)`. ℹ skewness is close to zero. The classical definition of the coskewness statistic is not applicable and one should normalize using the comoment without standardization. ℹ The warning occurred in group 1: portfolio = 1. Warning: Problem while computing `nested.col = purrr::map(...)`. ℹ skewness is close to zero. The classical definition of the coskewness statistic is not applicable and one should normalize using the comoment without standardization. ℹ The warning occurred in group 2: portfolio = 2. Warning: Problem while computing `nested.col = purrr::map(...)`. ℹ skewness is close to zero. The classical definition of the coskewness statistic is not applicable and one should normalize using the comoment without standardization. ℹ The warning occurred in group 3: portfolio = 3. `geom_smooth()` using formula 'y ~ x' `geom_smooth()` using formula 'y ~ x' `geom_smooth()` using formula 'y ~ x' --- finished re-building 'TQ05-performance-analysis-with-tidyquant.Rmd' SUMMARY: processing the following file failed: 'TQ01-core-functions-in-tidyquant.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs