* using log directory 'd:/RCompile/CRANincoming/R-devel/OPCreg.Rcheck' * using R Under development (unstable) (2025-02-14 r87718 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'OPCreg/DESCRIPTION' ... OK * this is package 'OPCreg' version '0.1' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [43s] NOTE Maintainer: 'Guangbao Guo ' New submission Possibly misspelled words in DESCRIPTION: Guo (9:143) * 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 'OPCreg' can be installed ... WARNING Found the following significant warnings: Warning: file 'IPCR.R' is invalid UTF-8 Warning: file 'PCR.R' is invalid UTF-8 Warning: file 'PPCR.R' is invalid UTF-8 Warning: file 'SPCR.R' is invalid UTF-8 Warning: invalidly encoded .R file(s) See 'd:/RCompile/CRANincoming/R-devel/OPCreg.Rcheck/00install.out' for details. * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... NOTE Author field differs from that derived from Authors@R Author: 'Guangbao Guo [aut, cre], Chunjie Wei [aut]' Authors@R: 'Guangbao Guo [aut, cre] (ORCID: ), Chunjie Wei [aut]' * 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 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 ... NOTE IPCR: no visible global function definition for 'lm' IPCR: no visible global function definition for 'coef' IPCR: no visible binding for global variable 'B' PCR: no visible global function definition for 'lm' PCR: no visible global function definition for 'coef' PCR: no visible binding for global variable 'B' PPCR: no visible global function definition for 'rnorm' PPCR: no visible global function definition for 'lm' PPCR: no visible global function definition for 'coef' SPCR: no visible global function definition for 'lm' SPCR: no visible global function definition for 'coef' Undefined global functions or variables: B coef lm rnorm Consider adding importFrom("stats", "coef", "lm", "rnorm") 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 ... WARNING Codoc mismatches from Rd file 'IPCR.Rd': IPCR Code: function(data, eta = 0.0035, m = 3, alpha = 0.05) Docs: function(data, m, eta) Argument names in code not in docs: alpha Mismatches in argument names: Position: 2 Code: eta Docs: m Position: 3 Code: m Docs: eta Mismatches in argument default values: Name: 'eta' Code: 0.0035 Docs: Name: 'm' Code: 3 Docs: * checking Rd \usage sections ... WARNING Documented arguments not in \usage in Rd file 'IPCR.Rd': 'alpha' Functions with \usage entries need to have the appropriate \alias entries, and all their arguments documented. The \usage entries must correspond to syntactically valid R code. See chapter 'Writing R documentation files' in the 'Writing R Extensions' manual. * checking Rd contents ... OK * checking for unstated dependencies in examples ... WARNING 'library' or 'require' call not declared from: 'matrixcalc' * checking examples ... ERROR Running examples in 'OPCreg-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: IPCR > ### Title: Incremental Principal Component Regression for Online Datasets > ### Aliases: IPCR > > ### ** Examples > > library(MASS) > library(matrixcalc) Error in library(matrixcalc) : there is no package called 'matrixcalc' Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 4 WARNINGs, 3 NOTEs