- using R version 4.3.3 (2024-02-29)
- using platform: aarch64-apple-darwin20 (64-bit)
- 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 ‘familial/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘familial’ version ‘1.0.7’
- 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 ‘familial’ can be installed ... [1s/1s] 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 R 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 ... [1s/1s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/2s] ERROR
Running examples in ‘familial-Ex.R’ failed
The error most likely occurred in:
> ### Name: center.test
> ### Title: Center test
> ### Aliases: center.test
>
> ### ** Examples
>
> set.seed(123)
>
> test <- center.test(MASS::galaxies, mu = 21000, nboot = 100)
> print(test)
-----------------------------------------------
familial test of centers with huber family
-----------------------------------------------
mu = 21000
posterior probabilities:
H0 H1
0.59 0.41
optimal decision: indeterminate
> plot(test)
Error in validObject(.Object) :
invalid class “FncBand” object: superclass "mMatrix" not defined in the environment of the object's class
Calls: plot ... initialize -> initialize -> initMatrix -> validObject
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [40s/43s] ERROR
Running ‘testthat.R’ [40s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(familial)
>
> test_check("familial")
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 34 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-center-test.R:27:3'): plot function returns a plot ─────────────
Error in `validObject(.Object)`: invalid class "FncBand" object: superclass "mMatrix" not defined in the environment of the object's class
Backtrace:
▆
1. ├─testthat::expect_s3_class(plot(test), "ggplot") at test-center-test.R:27:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::plot(test)
5. └─familial:::plot.center.test(test)
6. └─base::lapply(band, bands)
7. └─familial (local) FUN(X[[i]], ...)
8. ├─base::data.frame(...)
9. └─DepthProc::fncGetBand(DepthProc::fncDepth(boot.wide), level)
10. └─methods::new("FncBand", bands, index = obj@index, level = band)
11. ├─methods::initialize(value, ...)
12. └─methods::initialize(value, ...)
13. └─methods (local) initMatrix(.Object, ...)
14. └─methods::validObject(.Object)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 34 ]
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 ... [9s/10s] ERROR
Error(s) in re-building vignettes:
--- re-building ‘vignette.Rmd’ using rmarkdown
Quitting from lines 56-57 [unnamed-chunk-3] (vignette.Rmd)
Error: processing vignette 'vignette.Rmd' failed with diagnostics:
invalid class "FncBand" object: superclass "mMatrix" not defined in the environment of the object's class
--- failed re-building ‘vignette.Rmd’
SUMMARY: processing the following file failed:
‘vignette.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [3s/4s] OK
- DONE
Status: 3 ERRORs
- using check arguments '--no-clean-on-error '