- using R version 4.5.1 (2025-06-13 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'WVPlots/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'WVPlots' version '1.3.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 'WVPlots' can be installed ... 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 ... [3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s] OK
- checking loading without being on the library search path ... [3s] OK
- checking whether startup messages can be suppressed ... [3s] 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 ... [13s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [23s] ERROR
Running examples in 'WVPlots-Ex.R' failed
The error most likely occurred in:
> ### Name: ScatterHist
> ### Title: Plot a scatter plot with marginals.
> ### Aliases: ScatterHist
>
> ### ** Examples
>
>
> if (requireNamespace('data.table', quietly = TRUE)) {
+ # don't multi-thread during CRAN checks
+ data.table::setDTthreads(1)
+ }
>
> set.seed(34903490)
> x = rnorm(50)
> y = 0.5*x^2 + 2*x + rnorm(length(x))
> frm = data.frame(x=x,y=y)
> WVPlots::ScatterHist(frm, "x", "y",
+ title= "Example Fit",
+ smoothmethod = "gam",
+ contour = TRUE)
Error in `ggplot2::geom_density2d()`:
! Problem while computing stat.
ℹ Error occurred in the 3rd layer.
Caused by error in `compute_layer()`:
! The package "MASS" is required for calculating 2D density.
Backtrace:
▆
1. ├─WVPlots::ScatterHist(...)
2. │ └─WVPlots:::designYLabelPadFunction(...)
3. │ └─WVPlots:::getYLabs(p1)
4. │ ├─ggplot2::ggplot_build(p)
5. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(p)
6. │ └─ggplot2:::by_layer(...)
7. │ ├─rlang::try_fetch(...)
8. │ │ ├─base::tryCatch(...)
9. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
10. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
11. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
12. │ │ └─base::withCallingHandlers(...)
13. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
14. │ └─l$compute_statistic(d, layout)
15. │ └─ggplot2 (local) compute_statistic(..., self = self)
16. │ └─self$stat$compute_layer(data, self$computed_stat_params, layout)
17. │ └─ggplot2 (local) compute_layer(..., self = self)
18. │ └─rlang::check_installed("MASS", reason = "for calculating 2D density.")
19. │ └─base::stop(cnd)
20. └─rlang (local) `<fn>`(`<rlb_r___>`)
21. └─handlers[[1L]](cnd)
22. └─cli::cli_abort(...)
23. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [5s] OK
Running 'tinytest.R' [5s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [41s] OK
- checking PDF version of manual ... [22s] OK
- checking HTML version of manual ... [8s] OK
- DONE
Status: 1 ERROR