* using log directory 'd:/Rcompile/CRANpkg/local/3.4/spagmix.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'spagmix/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'spagmix' version '0.3-0' * 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 'spagmix' 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 ... 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 ... [10s] NOTE sgmix: no visible global function definition for 'isFALSE' Undefined global functions or variables: isFALSE * checking Rd files ... 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 ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... ERROR Running examples in 'spagmix-Ex.R' failed The error most likely occurred in: > ### Name: lgcpmix > ### Title: Generate a spatial log-Gaussian Cox process intensity > ### Aliases: lgcpmix > > ### ** Examples > > ## Homogeneous example ## > > # Create constant intensity image integrating to 500 > > homog <- as.im(as.mask(toywin)) > homog <- homog/integral(homog)*500 > > > # Corresponding LGCP realisations using exponential covariance structure > par(mfrow=c(2,2),mar=rep(1.5,4)) > for(i in 1:4){ + temp <- lgcpmix(homog,covmod="exp",covpars=list(var=1,scale=0.2)) + plot(temp,main=paste("Realisation",i),log=TRUE) + } > > > > ## Inhomogeneous examples ## > > # Create deterministic trend > > mn <- cbind(c(0.25,0.8),c(0.31,0.82),c(0.43,0.64),c(0.63,0.62),c(0.21,0.26)) > v1 <- matrix(c(0.0023,-0.0009,-0.0009,0.002),2) > v2 <- matrix(c(0.0016,0.0015,0.0015,0.004),2) > v3 <- matrix(c(0.0007,0.0004,0.0004,0.0011),2) > v4 <- matrix(c(0.0023,-0.0041,-0.0041,0.0099),2) > v5 <- matrix(c(0.0013,0.0011,0.0011,0.0014),2) > vr <- array(NA,dim=c(2,2,5)) > for(i in 1:5) vr[,,i] <- get(paste("v",i,sep="")) > intens <- sgmix(mean=mn,vcv=vr,window=toywin,p0=0.1,int=500) Error in isFALSE(all.equal(sum(c(0.3, p)), 1)) : could not find function "isFALSE" Calls: sgmix Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE