* using log directory 'd:/Rcompile/CRANpkg/local/4.3/tidyquant.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'tidyquant/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'tidyquant' version '1.0.10' * 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 ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [3s] OK * checking startup messages can be suppressed ... [2s] 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 ... [11s] OK * checking Rd files ... [1s] 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 ... [0s] 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 ... [26s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [14s] ERROR Running 'testthat.R' [14s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(tidyquant) ── Attaching core tidyquant packages ─────────────────────── tidyquant 1.0.10 ── ✔ PerformanceAnalytics 2.0.8 ✔ quantmod 0.4.26 ✔ TTR 0.24.4 ✔ xts 0.14.1 ── Conflicts ────────────────────────────────────────── tidyquant_conflicts() ── ✖ zoo::as.Date() masks base::as.Date() ✖ zoo::as.Date.numeric() masks base::as.Date.numeric() ✖ PerformanceAnalytics::legend() masks graphics::legend() ✖ quantmod::summary() masks base::summary() ℹ Use the conflicted package () to force all conflicts to become errors > > test_check("tidyquant") [ FAIL 2 | WARN 0 | SKIP 5 | PASS 64 ] ══ Skipped tests (5) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-index-tq_index.R:16:5', 'test-index_tq_exchange.R:18:5', 'test-tq_portfolio.R:4:1', 'test-tq_transmute.R:2:1' • On Windows (1): 'test-index_tq_exchange.R:32:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-tq_get_stock_prices.R:33:5'): Test prints warning message on invalid x input. ── `tq_get("XYZ", get = get)` did not produce any warnings. ── Failure ('test-tq_get_stock_prices.R:37:5'): Test returns NA on invalid x input. ── suppressWarnings(tq_get("XYZ", get = get)) not equal to NA. Modes: list, logical names for target but not for current Attributes: < Modes: list, NULL > Attributes: < names for target but not for current > Attributes: < current is not list-like > Length mismatch: comparison on first 1 components Component 1: Modes: character, logical Component 1: Lengths: 2305, 1 Component 1: target is character, current is logical [ FAIL 2 | WARN 0 | SKIP 5 | PASS 64 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [2s] OK * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 1 ERROR