* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/modelfree.Rcheck’ * using R Under development (unstable) (2022-04-26 r82260) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘modelfree/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘modelfree’ version ‘1.1-1’ * 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 ‘modelfree’ can be installed ... [10s/25s] OK * checking package directory ... OK * checking DESCRIPTION meta-information ... NOTE Malformed Description field: should contain one or more complete sentences. * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... NOTE 'library' or 'require' call to ‘SparseM’ which was already attached by Depends. Please remove these calls from your code. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [22s/52s] NOTE bandwidth_bootstrap: no visible global function definition for ‘rbinom’ bandwidth_bootstrap: no visible global function definition for ‘optimize’ bandwidth_cross_validation: no visible global function definition for ‘optimize’ bandwidth_optimal: no visible global function definition for ‘optimize’ bandwidth_plugin : moments: no visible global function definition for ‘integrate’ bandwidth_plugin : varfun: no visible global function definition for ‘predict’ bandwidth_plugin: no visible global function definition for ‘glm’ bandwidth_plugin: no visible global function definition for ‘binomial’ bandwidth_plugin: no visible global function definition for ‘deriv’ bandwidth_plugin: no visible global function definition for ‘coefficients’ bandwidth_plugin: no visible global function definition for ‘integrate’ binom_g : likfun: no visible global function definition for ‘glm’ binom_g : likfun: no visible global function definition for ‘binomial’ binom_g : likfun: no visible global function definition for ‘predict’ binom_g: no visible global function definition for ‘optim’ binom_g: no visible global function definition for ‘glm’ binom_g: no visible global function definition for ‘binomial’ binom_gl : likfun: no visible global function definition for ‘glm’ binom_gl : likfun: no visible global function definition for ‘binomial’ binom_gl : likfun: no visible global function definition for ‘predict’ binom_gl: no visible global function definition for ‘optim’ binom_gl: no visible global function definition for ‘glm’ binom_gl: no visible global function definition for ‘binomial’ binom_l : likfun: no visible global function definition for ‘glm’ binom_l : likfun: no visible global function definition for ‘binomial’ binom_l : likfun: no visible global function definition for ‘predict’ binom_l: no visible global function definition for ‘optim’ binom_l: no visible global function definition for ‘glm’ binom_l: no visible global function definition for ‘binomial’ binom_revweib : likfun: no visible global function definition for ‘glm’ binom_revweib : likfun: no visible global function definition for ‘binomial’ binom_revweib : likfun: no visible global function definition for ‘predict’ binom_revweib: no visible global function definition for ‘optim’ binom_revweib: no visible global function definition for ‘glm’ binom_revweib: no visible global function definition for ‘binomial’ binom_weib : likfun: no visible global function definition for ‘glm’ binom_weib : likfun: no visible global function definition for ‘binomial’ binom_weib : likfun: no visible global function definition for ‘predict’ binom_weib: no visible global function definition for ‘optim’ binom_weib: no visible global function definition for ‘glm’ binom_weib: no visible global function definition for ‘binomial’ binomfit_lims: no visible global function definition for ‘glm’ binomfit_lims: no visible global function definition for ‘binomial’ bootstrap_ci_sl: no visible global function definition for ‘rbinom’ bootstrap_ci_sl: no visible global function definition for ‘quantile’ bootstrap_ci_th: no visible global function definition for ‘rbinom’ bootstrap_ci_th: no visible global function definition for ‘quantile’ bootstrap_sd_sl: no visible global function definition for ‘rbinom’ bootstrap_sd_sl: no visible global function definition for ‘var’ bootstrap_sd_th: no visible global function definition for ‘rbinom’ bootstrap_sd_th: no visible global function definition for ‘var’ locglmfit_sparse_private: no visible global function definition for ‘new’ probit_link : probitFL: no visible global function definition for ‘qnorm’ probit_link : probitFD: no visible global function definition for ‘qnorm’ probit_link : probitFD: no visible global function definition for ‘dnorm’ probit_link : probitFI: no visible global function definition for ‘qnorm’ probit_link : probitFI: no visible global function definition for ‘pnorm’ probit_link_private : probitFL: no visible global function definition for ‘qnorm’ probit_link_private : probitFD: no visible global function definition for ‘qnorm’ probit_link_private : probitFD: no visible global function definition for ‘dnorm’ probit_link_private : probitFI: no visible global function definition for ‘qnorm’ probit_link_private : probitFI: no visible global function definition for ‘pnorm’ threshold_slope: no visible binding for global variable ‘end’ Undefined global functions or variables: binomial coefficients deriv dnorm end glm integrate new optim optimize pnorm predict qnorm quantile rbinom var Consider adding importFrom("methods", "new") importFrom("stats", "binomial", "coefficients", "deriv", "dnorm", "end", "glm", "integrate", "optim", "optimize", "pnorm", "predict", "qnorm", "quantile", "rbinom", "var") to your NAMESPACE file (and ensure that your DESCRIPTION Imports field contains 'methods'). * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'bandwidth_bootstrap.Rd': \usage lines wider than 90 characters: bandwidth_bootstrap( r, m, x, H, N, h0 = NULL, link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = 1, ker = c( "dnorm" ), maxite ... [TRUNCATED] Rd file 'bandwidth_cross_validation.Rd': \usage lines wider than 90 characters: bandwidth_cross_validation( r, m, x, H, link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = 1, ker = c( "dnorm" ), maxiter = 50, ... [TRUNCATED] Rd file 'bandwidth_optimal.Rd': \usage lines wider than 90 characters: bandwidth_optimal( ptrue, r, m, x, H, link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = 1, ker = c( "dnorm" ), maxiter = 50, t ... [TRUNCATED] Rd file 'bandwidth_plugin.Rd': \usage lines wider than 90 characters: bandwidth_plugin( r, m, x, link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = 1, ker = c( "dnorm" ) ) Rd file 'bootstrap_ci_sl.Rd': \usage lines wider than 90 characters: bootstrap_ci_sl( TH, r, m, x, N, h0, alpha = 0.05, X = (max(x)-min(x))*(0:999)/999+min(x), link = c( "logit" ), guessing = 0, lapsing = ... [TRUNCATED] Rd file 'bootstrap_ci_th.Rd': \usage lines wider than 90 characters: bootstrap_ci_th( TH, r, m, x, N, h0, alpha = 0.05, X = (max(x)-min(x))*(0:999)/999+min(x), link = c( "logit" ), guessing = 0, lapsing = ... [TRUNCATED] Rd file 'bootstrap_sd_sl.Rd': \usage lines wider than 90 characters: bootstrap_sd_sl( TH, r, m, x, N, h0, X = (max(x)-min(x))*(0:999)/999+min(x), link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = ... [TRUNCATED] Rd file 'bootstrap_sd_th.Rd': \usage lines wider than 90 characters: bootstrap_sd_th( TH, r, m, x, N, h0, X = (max(x)-min(x))*(0:999)/999+min(x), link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = ... [TRUNCATED] Rd file 'locglmfit.Rd': \usage lines wider than 90 characters: locglmfit( xfit, r, m, x, h, returnH = FALSE, link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = 1, ker = c( "dnorm" ), maxiter ... [TRUNCATED] Rd file 'locglmfit_private.Rd': \usage lines wider than 90 characters: locglmfit_private( xfit, r, m, x, h, returnH, link, guessing, lapsing, K, p, ker, maxiter, tol ) \examples lines wider than 100 characters: fit <- locglmfit_private( xnew, example01$r, example01$m, example01$x, h, FALSE, "logit_link", 0, 0, 2, 1, "dnorm", 50, 1e-6) Rd file 'locglmfit_sparse_private.Rd': \usage lines wider than 90 characters: locglmfit_sparse_private( xfit, r, m, x, h, returnH, link, guessing, lapsing, K, p, ker, maxiter, tol ) \examples lines wider than 100 characters: fit <- locglmfit_sparse_private( xnew, example01$r, example01$m, example01$x, h, FALSE, "logit_link", 0, 0, 2, 1, "dnorm", 50, 1e-6) These lines will be truncated in the PDF manual. * 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... ERROR Running examples in ‘modelfree-Ex.R’ failed The error most likely occurred in: > ### Name: bandwidth_bootstrap > ### Title: Bootstrap estimate of bandwidth > ### Aliases: bandwidth_bootstrap > ### Keywords: nonparametric models regression nonlinear > > ### ** Examples > > data("01_Miranda") > h<- bandwidth_bootstrap( example01$r, example01$m, example01$x, c( 0.1, 10 ), 10 ) ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- modelfree --- call from context --- checkpsychometricdata(x[[1]], x[[2]], x[[3]]) --- call from argument --- dimx != dimr || dimx != dimm --- R stacktrace --- where 1: checkpsychometricdata(x[[1]], x[[2]], x[[3]]) where 2: checkinput("psychometricdata", checkdata) where 3: bandwidth_bootstrap(example01$r, example01$m, example01$x, c(0.1, 10), 10) --- value of length: 2 type: logical --- [1] FALSE FALSE --- function from context --- function (x, r, m, type = "local") { dimx <- dim(as.matrix(x)) dimr <- dim(as.matrix(r)) dimm <- dim(as.matrix(m)) if (dimx != dimr || dimx != dimm) { stop("The number of stimulus levels, successes and trials must be the same") } if (dimx[1] < 2 || dimr[1] < 2 || dimm < 2) { stop("Minimum number of points is 2") } if (any(r < 0) || any(round(r) != r)) { stop("Number of successes must be a non-negative integer") } if (any(m <= 0) || any(round(m) != m)) { stop("Number of trials must be a positive integer") } if (any(r > m)) { stop("Number of successes cannot be larger than number of trials") } } --- function search by body --- ----------- END OF FAILURE REPORT -------------- Fatal error: length > 1 in coercion to logical * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 4 NOTEs See ‘/data/gannet/ripley/R/packages/tests-LENGTH1/modelfree.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:11.09, 66.68 + 7.56