Package check result: NOTE Check: examples, Result: NOTE Examples with CPU (user + system) or elapsed time > 5s user system elapsed contrast 5.936 0.068 6.005 Changes to worse in reverse depends: Package: rankCorr Check: examples New result: ERROR Running examples in ‘rankCorr-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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 mod$trans$cumprob(g) : attempt to apply non-function Calls: rankCorrCluster -> scores_presid Execution halted