- using R version 4.4.1 (2024-06-14)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.4
- using session charset: UTF-8
- checking for file ‘PortfolioTesteR/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘PortfolioTesteR’ version ‘0.1.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 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 ‘PortfolioTesteR’ can be installed ... [5s/6s] OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [6s/7s] OK
- checking Rd files ... [0s/0s] 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/0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [6s/7s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [3s/3s] ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> if (requireNamespace("testthat", quietly = TRUE)) {
+ library(testthat)
+ library(PortfolioTesteR)
+ test_check("PortfolioTesteR")
+ } else {
+ message("Skipping tests: 'testthat' not installed")
+ }
Saving _problems/test-ml-helpers-101.R
[ FAIL 1 | WARN 0 | SKIP 3 | PASS 55 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test-optimization.R:2:3', 'test-optimization.R:46:3',
'test-walk-forward.R:2:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ml-helpers.R:92:3'): backtest invariants hold on active dates (smoke, linear) ──
Error in `.roll_align_common(c(features_list, list(label)))`: No common dates across panels.
Backtrace:
▆
1. └─PortfolioTesteR::ml_backtest(...) at test-ml-helpers.R:92:3
2. └─PortfolioTesteR::roll_fit_predict(...)
3. └─PortfolioTesteR:::.roll_align_common(c(features_list, list(label)))
[ FAIL 1 | WARN 0 | SKIP 3 | PASS 55 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [16s/17s] ERROR
Error(s) in re-building vignettes:
--- re-building ‘Getting_Started_Advanced.Rmd’ using rmarkdown
Quitting from Getting_Started_Advanced.Rmd:84-108 [baseline_pooled]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `.roll_align_common()`:
! No common dates across panels.
---
Backtrace:
▆
1. └─PortfolioTesteR::ml_backtest(...)
2. └─PortfolioTesteR::roll_fit_predict(...)
3. └─PortfolioTesteR:::.roll_align_common(c(features_list, list(label)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Getting_Started_Advanced.Rmd' failed with diagnostics:
No common dates across panels.
--- failed re-building ‘Getting_Started_Advanced.Rmd’
--- re-building ‘getting-started.Rmd’ using rmarkdown
--- finished re-building ‘getting-started.Rmd’
--- re-building ‘optimization-walkforward.Rmd’ using rmarkdown
--- finished re-building ‘optimization-walkforward.Rmd’
SUMMARY: processing the following file failed:
‘Getting_Started_Advanced.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/5s] OK
- DONE
Status: 2 ERRORs
- using check arguments '--no-clean-on-error '