- using R version 4.5.2 Patched (2026-01-31 r89382)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 16.0.0 (clang-1600.0.26.6)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.7.8
- using session charset: UTF-8
- checking for file ‘cooltools/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘cooltools’ version ‘2.33’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘EBImage’
- 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 ‘cooltools’ can be installed ... [11s/13s] 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.1.sdk’
- checking installed package size ... OK
- 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 ... [2s/2s] 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/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/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 ... [7s/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 LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking compiled code ... OK
- checking examples ... [4s/4s] ERROR
Running examples in ‘cooltools-Ex.R’ failed
The error most likely occurred in:
> ### Name: kde2
> ### Title: Multi-dimensional adaptive kernel density estimation
> ### Aliases: kde2
>
> ### ** Examples
>
> # make a mock sample of n d-dimensional points from
> # three different components (1D line, 2D square, d-D normal distr)
> d = 3 # number of dimensions of mock point set; try to choose different values 2, 3, 4, ...
> n = 1e4 # number of particles per component
> set.seed(1)
> x = rbind(cbind(array(rep(runif(n,-1,1),2),c(n,2)),array(0,c(n,d-2))),
+ cbind(array(runif(2*n),c(n,2)),array(0,c(n,d-2))),
+ array(rnorm(d*n),c(n,d)))
>
> # grid total projected probability density
> npixels = 500 # number of pixels along a grid side
> q = midseq(-3,3,npixels)
> f1 = outer(dnorm(q),dnorm(q),'*')/3+outer(dunif(q),dunif(q),'*')/3
> q = seq(round(npixels/3),round(npixels*2/3))
> f1[q+npixels*(q-1)] = f1[q+npixels*(q-1)]+(npixels/6)^2/length(q)/3
>
> # recover 2D projected pdf from 3D point sample using different methods
> f2 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='basic', probability=TRUE)$field
> f3 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='kdefast', probability=TRUE)$field
> f4 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='kdenn', probability=TRUE)$field
Error in kde2(x, n = npixels, xlim = c(-3, 3), ylim = c(-3, 3), algorithm = "kdenn", :
Package EBImage is needed to run kde2 in with kdenn or manual algorithm.
Execution halted
- checking PDF version of manual ... [3s/3s] OK
- DONE
Status: 1 ERROR