* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/CommunityCorrelogram.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 ‘CommunityCorrelogram/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘CommunityCorrelogram’ version ‘1.0’ * 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 ‘CommunityCorrelogram’ can be installed ... [11s/26s] 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 ... 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 ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [16s/30s] NOTE RValues: no visible global function definition for ‘cor.test’ commcorrelogram: no visible global function definition for ‘p.adjust’ lag.sort: no visible global function definition for ‘combn’ lagSelect: no visible global function definition for ‘dev.new’ lagSelect: no visible global function definition for ‘par’ mod.commcorrelogram: no visible global function definition for ‘na.omit’ mod.commcorrelogram: no visible global function definition for ‘nlminb’ mod.commcorrelogram: no visible global function definition for ‘uniroot’ mod.commcorrelogram: no visible global function definition for ‘par’ mod.commcorrelogram: no visible global function definition for ‘abline’ mod.commcorrelogram: no visible global function definition for ‘lines’ mod.commcorrelogram: no visible global function definition for ‘legend’ plot.commcorrelogram: no visible global function definition for ‘na.omit’ plot.commcorrelogram: no visible global function definition for ‘par’ plot.commcorrelogram: no visible global function definition for ‘abline’ plot.commcorrelogram: no visible global function definition for ‘legend’ mod,commcorrelogram: no visible global function definition for ‘na.omit’ mod,commcorrelogram: no visible global function definition for ‘nlminb’ mod,commcorrelogram: no visible global function definition for ‘uniroot’ mod,commcorrelogram: no visible global function definition for ‘par’ mod,commcorrelogram: no visible global function definition for ‘abline’ mod,commcorrelogram: no visible global function definition for ‘lines’ mod,commcorrelogram: no visible global function definition for ‘legend’ plot,commcorrelogram-missing: no visible global function definition for ‘na.omit’ plot,commcorrelogram-missing: no visible global function definition for ‘par’ plot,commcorrelogram-missing: no visible global function definition for ‘abline’ plot,commcorrelogram-missing: no visible global function definition for ‘legend’ Undefined global functions or variables: abline combn cor.test dev.new legend lines na.omit nlminb p.adjust par uniroot Consider adding importFrom("grDevices", "dev.new") importFrom("graphics", "abline", "legend", "lines", "par") importFrom("stats", "cor.test", "na.omit", "nlminb", "p.adjust", "uniroot") importFrom("utils", "combn") to your NAMESPACE file. * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... [7s/16s] ERROR Running examples in ‘CommunityCorrelogram-Ex.R’ failed The error most likely occurred in: > ### Name: commcorrelogram > ### Title: Community Correlogram > ### Aliases: commcorrelogram > ### Keywords: multivariate spatial chron > > ### ** Examples > > #spatial community ANOSIM correlogram > data(mite) > data(mite.xy) > commcorrelogram(sampleData=mite,sampleLocation=cbind(mite.xy,z=0) + ,lagSize=0.3,lagNumber=17,lagTol=0.15,option=1,numTests=5) ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- CommunityCorrelogram --- call from context --- validityMethod(object) --- call from argument --- abs(object@community.correlogram[, 3]) <= 1 && object@community.correlogram[, 4] <= 1 --- R stacktrace --- where 1: validityMethod(object) where 2: isTRUE(x) where 3: anyStrings(validityMethod(object)) where 4: validObject(.Object) where 5: initialize(value, ...) where 6: initialize(value, ...) where 7: new("commcorrelogram", community.correlogram = data.frame(rVals[, 3], rVals[, 2], rVals[, 1], lagSig)) where 8: commcorrelogram(sampleData = mite, sampleLocation = cbind(mite.xy, z = 0), lagSize = 0.3, lagNumber = 17, lagTol = 0.15, option = 1, numTests = 5) --- value of length: 18 type: logical --- [1] NA NA TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [16] TRUE TRUE TRUE --- function from context --- function (object) { dim(object@community.correlogram)[2] == 4 && ((abs(object@community.correlogram[, 3]) <= 1 && object@community.correlogram[, 4] <= 1) | (is.na(object@community.correlogram[, 3]) && is.na(object@community.correlogram[, 4]))) } --- 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, 1 NOTE See ‘/data/gannet/ripley/R/packages/tests-LENGTH1/CommunityCorrelogram.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:58.48, 88.67 + 9.69