* using log directory ‘/srv/hornik/tmp/CRAN_pretest/lmForc.Rcheck’ * using R Under development (unstable) (2024-08-28 r87070) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 18.1.8 (9) Debian flang-new version 18.1.8 (9) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘lmForc/DESCRIPTION’ ... OK * this is package ‘lmForc’ version ‘1.0.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/4s] Note_to_CRAN_maintainers Maintainer: ‘Nelson Rayl ’ * 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 ‘lmForc’ can be installed ... [2s/2s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... NOTE Non-standard file/directory found at top level: ‘README.html’ * 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 ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] 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 ... [4s/4s] NOTE conditional_forc_general: no visible global function definition for ‘formalArgs’ is_forc_general: no visible global function definition for ‘formalArgs’ oos_realized_forc_general: no visible global function definition for ‘formalArgs’ oos_vintage_forc_general: no visible global function definition for ‘formalArgs’ Undefined global functions or variables: formalArgs Consider adding importFrom("methods", "formalArgs") to your NAMESPACE file (and ensure that your DESCRIPTION Imports field contains 'methods'). Found if() conditions comparing class() to string: File ‘lmForc/R/Forecast.R’: if (class(object@forecast) != "numeric") ... File ‘lmForc/R/Forecast.R’: if (class(object@realized) != "numeric") ... File ‘lmForc/R/conditional_forc.R’: if (class(lm_call) != "lm") ... File ‘lmForc/R/conditional_forc_general.R’: if (class(model_function) != "function") ... File ‘lmForc/R/conditional_forc_general.R’: if (class(prediction_function) != "function") ... File ‘lmForc/R/is_forc.R’: if (class(lm_call) != "lm") ... File ‘lmForc/R/is_forc_general.R’: if (class(model_function) != "function") ... File ‘lmForc/R/is_forc_general.R’: if (class(prediction_function) != "function") ... File ‘lmForc/R/is_forc_general.R’: if (class(forecast) != "numeric") ... File ‘lmForc/R/oos_lag_forc.R’: if (class(lm_call) != "lm") ... File ‘lmForc/R/oos_realized_forc.R’: if (class(lm_call) != "lm") ... File ‘lmForc/R/oos_realized_forc_general.R’: if (class(model_function) != "function") ... File ‘lmForc/R/oos_realized_forc_general.R’: if (class(prediction_function) != "function") ... File ‘lmForc/R/oos_vintage_forc.R’: if (class(lm_call) != "lm") ... File ‘lmForc/R/oos_vintage_forc_general.R’: if (class(model_function) != "function") ... File ‘lmForc/R/oos_vintage_forc_general.R’: if (class(prediction_function) != "function") ... Use inherits() (or maybe is()) instead. * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'conditional_forc_general.Rd': \examples lines wider than 100 characters: x1 <- c(8.22, 3.86, 4.27, 3.37, 5.88, 3.34, 2.92, 1.80, 3.30, 7.17, 3.22, 3.86, 4.27, 3.37, 5.88, 3.34) x2 <- c(4.03, 2.46, 2.04, 2.44, 6.09, 2.91, 1.68, 2.91, 3.87, 1.63, 4.03, 2.46, 2.04, 2.44, 6.09, 2.91) Rd file 'is_forc_general.Rd': \examples lines wider than 100 characters: prediction_function = function(model_function, data) {as.vector(predict(model_function, data, type = "response"))}, Rd file 'oos_realized_forc_general.Rd': \examples lines wider than 100 characters: x1 <- c(8.22, 3.86, 4.27, 3.37, 5.88, 3.34, 2.92, 1.80, 3.30, 7.17, 3.22, 3.86, 4.27, 3.37, 5.88, 3.34) x2 <- c(4.03, 2.46, 2.04, 2.44, 6.09, 2.91, 1.68, 2.91, 3.87, 1.63, 4.03, 2.46, 2.04, 2.44, 6.09, 2.91) prediction_function = function(model_function, data) {as.vector(predict(model_function, data, type = "response"))}, Rd file 'oos_vintage_forc_general.Rd': \examples lines wider than 100 characters: x1 <- c(8.22, 3.86, 4.27, 3.37, 5.88, 3.34, 2.92, 1.80, 3.30, 7.17, 3.22, 3.86, 4.27, 3.37, 5.88, 3.34) x2 <- c(4.03, 2.46, 2.04, 2.44, 6.09, 2.91, 1.68, 2.91, 3.87, 1.63, 4.03, 2.46, 2.04, 2.44, 6.09, 2.91) 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [2s/2s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [1s/1s] OK Running ‘testthat.R’ [1s/1s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [2s/2s] OK * checking PDF version of manual ... [4s/4s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 3 NOTEs