* using log directory 'd:/RCompile/CRANincoming/R-devel/spatialreg.hp.Rcheck' * using R Under development (unstable) (2025-08-20 r88661 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'spatialreg.hp/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'spatialreg.hp' version '0.0-1' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Jiangshan Lai ' New submission * 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 serialization versions ... OK * checking whether package 'spatialreg.hp' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 code 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 whether startup messages can be suppressed ... 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] NOTE nagelkerke_r2_lm: no visible global function definition for 'model.frame' nagelkerke_r2_lm: no visible global function definition for 'model.response' nagelkerke_r2_lm: no visible global function definition for 'logLik' Undefined global functions or variables: logLik model.frame model.response Consider adding importFrom("stats", "logLik", "model.frame", "model.response") 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 ... WARNING '::' or ':::' import not declared from: 'spdep' 'library' or 'require' call not declared from: 'spdep' 'data(package=)' call not declared from: 'spdep' * checking examples ... ERROR Running examples in 'spatialreg.hp-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: plot.spatialreghp > ### Title: Plot for a 'spatialreg.hp' object > ### Aliases: plot.spatialreghp > > ### ** Examples > > library(spatialreg) > library(spdep) Attaching package: 'spdep' The following objects are masked from 'package:spatialreg': get.ClusterOption, get.VerboseOption, get.ZeroPolicyOption, get.coresOption, get.mcOption, set.ClusterOption, set.VerboseOption, set.ZeroPolicyOption, set.coresOption, set.mcOption > data(oldcol, package="spdep") > listw <- spdep::nb2listw(COL.nb, style="W") > ev <- eigenw(listw) > W <- as(listw, "CsparseMatrix") > trMatc <- trW(W, type="mult") > COL.lag.eig <- lagsarlm(CRIME ~ INC + HOVAL, data=COL.OLD, listw=listw, + method="eigen", control=list(pre_eig=ev, OrdVsign=1)) > spatialreg.hp(COL.lag.eig) $Total.R2 [1] 0.6348356 $Individual.R2 Unique Average.share Individual I.perc(%) spatial 0.0823 0.1162 0.1985 31.27 INC 0.0784 0.1809 0.2593 40.85 HOVAL 0.0677 0.1093 0.1770 27.88 attr(,"class") [1] "spatialreghp" > spatialreg.hp(COL.lag.eig,iv=list(pre1="INC",pre2="HOVAL")) $Total.R2 [1] 0.6348356 $Individual.R2 Unique Average.share Individual I.perc(%) spatial 0.0823 0.1162 0.1985 31.27 pre1 0.0784 0.1809 0.2593 40.85 pre2 0.0677 0.1093 0.1770 27.88 attr(,"class") [1] "spatialreghp" > spatialreg.hp(COL.lag.eig,iv=list(pre1="INC",pre2="HOVAL"),commonality=T) Error in spatialreg.hp(COL.lag.eig, iv = list(pre1 = "INC", pre2 = "HOVAL"), : T used instead of TRUE Execution halted * checking PDF version of manual ... [16s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 WARNING, 2 NOTEs