- using R version 4.5.2 (2025-10-31)
- 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 ‘fungible/DESCRIPTION’ ... OK
- this is package ‘fungible’ version ‘2.4.4.1’
- 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 ‘fungible’ can be installed ... [6s/13s] 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/5s] ERROR
Running examples in ‘fungible-Ex.R’ failed
The error most likely occurred in:
> ### Name: monte
> ### Title: Simulate Clustered Data with User-Defined Properties
> ### Aliases: monte
> ### Keywords: datagen
>
> ### ** Examples
>
>
> ## Example 1
> ## Simulating Fisher's Iris data
> # The original data were reported in:
> # Fisher, R. A. (1936) The use of multiple measurements in taxonomic
> # problems. Annals of Eugenics, 7, Part II, 179-188.
> #
> # This example includes 3 clusters. Each cluster represents
> # an Iris species: Setosa, Versicolor, and Virginica.
> # On each species, four variables were measured: Sepal Length,
> # Sepal Width, Petal Length, and Petal Width.
> #
> # The within species (cluster) correlations of the flower
> # indicators are as follows:
> #
> # Iris Type 1:
> # [,1] [,2] [,3] [,4]
> # [1,] 1.000 0.743 0.267 0.178
> # [2,] 0.743 1.000 0.278 0.233
> # [3,] 0.267 0.278 1.000 0.332
> # [4,] 0.178 0.233 0.332 1.000
> #
> # Iris Type 2
> # [,1] [,2] [,3] [,4]
> # [1,] 1.000 0.526 0.754 0.546
> # [2,] 0.526 1.000 0.561 0.664
> # [3,] 0.754 0.561 1.000 0.787
> # [4,] 0.546 0.664 0.787 1.000
> #
> # Iris Type 3
> # [,1] [,2] [,3] [,4]
> # [1,] 1.000 0.457 0.864 0.281
> # [2,] 0.457 1.000 0.401 0.538
> # [3,] 0.864 0.401 1.000 0.322
> # [4,] 0.281 0.538 0.322 1.000
> #
> # 'monte' expects a list of correlation matrices
> #
>
> #create a list of within species correlations
> data(iris)
> cormat <- cm <- lapply(split(iris[,1:4], iris[,5]), cor)
>
> # create a list of within species indicator
> # skewness and kurtosis
> sk.lst <- list(c(0.120, 0.041, 0.106, 1.254),
+ c(0.105, -0.363, -0.607, -0.031),
+ c(0.118, 0.366, 0.549, -0.129) )
>
>
> kt.lst <- list(c(-0.253, 0.955, 1.022, 1.719),
+ c(-0.533,-0.366, 0.048, -0.410),
+ c( 0.033, 0.706, -0.154, -0.602) )
>
>
> #Generate a new sample of iris data
> my.iris <- monte(seed=123, nvar = 4, nclus = 3, cor.list = cormat,
+ clus.size = c(50, 50, 50),
+ eta2=c(0.619, 0.401, 0.941, 0.929),
+ random.cor = FALSE,
+ skew.list = sk.lst,
+ kurt.list = kt.lst,
+ secor = .3, compactness=c(1, 1, 1),
+ sortMeans = TRUE)
[1] 1
[1] 2
[1] 3
Error in apply(apply(data.means, 2, unique), 2, sort) :
dim(X) must have a positive length
Calls: monte -> apply
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [0s/0s] OK
Running ‘testthat.R’ [0s/0s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s/5s] OK
- checking PDF version of manual ... [4s/4s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '