- using R version 4.5.2 (2025-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-12) 14.3.0
GNU Fortran (Debian 14.3.0-12) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘tidyquant/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘tidyquant’ version ‘1.0.11’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘Quandl’
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘tidyquant’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/4s] OK
- checking loading without being on the library search path ... [3s/4s] OK
- checking whether startup messages can be suppressed ... [3s/4s] 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 ... [18s/23s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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/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 ... [17s/28s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/27s] ERROR
Running ‘testthat.R’ [12s/27s]
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.11 ──
✔ PerformanceAnalytics 2.0.8 ✔ quantmod 0.4.28
✔ 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 (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
>
> test_check("tidyquant")
Saving _problems/test-tq_get_economic_data-20.R
Saving _problems/test-tq_get_economic_data-23.R
Saving _problems/test-tq_get_economic_data-25.R
Saving _problems/test-tq_get_economic_data-27.R
[ FAIL 4 | WARN 1 | SKIP 4 | PASS 63 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• 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'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-tq_get_economic_data.R:20:5'): Test returns tibble with correct rows and columns. ──
Expected `test1` to inherit from "character".
Actual inheritance: "logical"
── Failure ('test-tq_get_economic_data.R:23:5'): Test returns tibble with correct rows and columns. ──
Expected `test1` to be identical to `test2`.
Differences:
Modes: logical, list
Lengths: 1, 3
names for current but not for target
Attributes: < target is NULL, current is list >
target is logical, current is tbl_df
── Failure ('test-tq_get_economic_data.R:25:5'): Test returns tibble with correct rows and columns. ──
Expected `nrow(test1)` to equal 6.
Differences:
target is NULL, current is numeric
── Failure ('test-tq_get_economic_data.R:27:5'): Test returns tibble with correct rows and columns. ──
Expected `ncol(test1)` to equal 3.
Differences:
target is NULL, current is numeric
[ FAIL 4 | WARN 1 | SKIP 4 | PASS 63 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s/1s] OK
- checking PDF version of manual ... [8s/10s] OK
- checking HTML version of manual ... [2s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR