- using R version 4.4.1 (2024-06-14)
- using platform: x86_64-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.3.1
- using session charset: UTF-8
- checking for file ‘Rforestry/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘Rforestry’ version ‘0.10.0’
- 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 ‘Rforestry’ can be installed ... [48s/30s] OK
See the install log for details.
- used C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
- used SDK: ‘MacOSX11.3.sdk’
- checking installed package size ... NOTE
installed size is 7.7Mb
sub-directories of 1Mb or more:
libs 7.4Mb
- checking package 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 ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/2s] OK
- checking whether startup messages can be suppressed ... [1s/2s] 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 line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking compiled code ... OK
- checking examples ... [3s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [68s/58s] ERROR
Running ‘testthat.R’ [68s/58s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(Rforestry)
##
## Rforestry (Version 0.10.0, Build Date: R 4.4.1; x86_64-apple-darwin20; 2025-01-31 00:47:56 UTC; unix)
## See https://github.com/forestry-labs for additional documentation.
## Please cite software as:
## Soren R. Kunzel, Theo F. Saarinen, Edward W. Liu, Jasjeet S. Sekhon. 2019.
## ''Linear Aggregation in Tree-based Estimators.'' arXiv preprint
## arXiv:1906.06463. https://arxiv.org/abs/1906.06463
##
>
> test_check("Rforestry")
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 1422 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-forestry.R:48:3'): Tests that random forest is working correctly ──
`rf <- forestry(x = iris[, -1], y = iris[, 1], seed = seed_i)` threw an error with unexpected message.
Expected match: "A parameter passed is not assigned: object 'seed_i' not found\n"
Actual message: "A parameter passed is not assigned: Error in eval(code, test_env): object 'seed_i' not found\n"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-forestry.R:48:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─Rforestry::forestry(x = iris[, -1], y = iris[, 1], seed = seed_i)
7. └─base::tryCatch(...)
8. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
9. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
10. └─value[[3L]](cond)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 1422 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [6s/8s] OK
- DONE
Status: 1 ERROR, 1 NOTE
- using check arguments '--no-clean-on-error '