* using log directory 'd:/Rcompile/CRANpkg/local/4.3/rankCorr.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'rankCorr/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'rankCorr' version '1.0.3' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'rankCorr' can be installed ... OK * 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [4s] OK * checking whether the package can be unloaded cleanly ... [4s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s] OK * checking whether the namespace can be unloaded cleanly ... [5s] OK * checking loading without being on the library search path ... [5s] 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 ... [12s] OK * checking Rd files ... [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 examples ... [6s] ERROR Running examples in 'rankCorr-Ex.R' failed The error most likely occurred in: > ### Name: rankCorrCluster > ### Title: Total, between-, and within-cluster Spearman rank correlations > ### for clustered data > ### Aliases: rankCorrCluster > > ### ** Examples > > library(mvtnorm) > k <- 50; m <- 5 > sigma.u <- matrix(c(1, 0.6, 0.6, 4), ncol=2); sigma.e <- matrix(c(1, 0.6, 0.6, 1), ncol=2) > u <- rmvnorm(k, c(1, -1), sigma.u) > x1 <- matrix(NA, k, m) > y1 <- matrix(NA, k, m) > for (i in 1:k){ + r <- rmvnorm(m, c(0, 0), sigma.e) + x1[i,] <- u[i, 1] + r[, 1] + y1[i,] <- u[i, 2] + r[, 2] + } > x <- as.vector(t(x1)) > y <- as.vector(t(y1)) > cluster <- rep(1:k, each=m) > rankCorrCluster(x, y, cluster, link.x = "probit", link.y = "probit", + methods_between_corr = "approx") Error in cumprob(g) : could not find function "cumprob" Calls: rankCorrCluster -> scores_presid Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR