* using log directory 'd:/RCompile/CRANincoming/R-devel/mlspatial.Rcheck' * using R Under development (unstable) (2025-07-07 r88391 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 'mlspatial/DESCRIPTION' ... OK * this is package 'mlspatial' version '0.1.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Adeboye Azeez ' 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 whether package 'mlspatial' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking 'build' 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 code files for non-ASCII characters ... WARNING Found the following file with non-ASCII characters: R/model_evaluation.R Portable packages must use only ASCII characters in their R code and NAMESPACE directives, except perhaps in comments. Use \uxxxx escapes for other characters. Function 'tools::showNonASCIIfile' can help in finding non-ASCII characters in files. * 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 ... WARNING '::' or ':::' imports not declared from: 'methods' 'xgb' Package in Depends field not imported from: 'tidyverse' These packages need to be imported from (in the NAMESPACE file) for when this namespace is loaded but not attached. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE compute_spatial_autocorr: no visible global function definition for '%>%' eval_model: no visible global function definition for 'model.matrix' eval_model: no visible global function definition for 'predict' join_data: no visible global function definition for '%>%' plot_obs_vs_pred: no visible global function definition for 'aes' plot_obs_vs_pred: no visible binding for global variable 'obs' plot_obs_vs_pred: no visible binding for global variable 'pred' plot_obs_vs_pred: no visible global function definition for 'geom_point' plot_obs_vs_pred: no visible global function definition for 'geom_abline' plot_obs_vs_pred: no visible global function definition for 'labs' plot_obs_vs_pred: no visible global function definition for 'theme_minimal' plot_single_map: no visible global function definition for 'tm_shape' plot_single_map: no visible global function definition for 'tm_fill' plot_single_map: no visible global function definition for 'tm_scale_intervals' plot_single_map: no visible global function definition for 'tm_legend' plot_single_map: no visible global function definition for 'tm_borders' plot_single_map: no visible global function definition for 'tm_compass' plot_single_map: no visible global function definition for 'tm_layout' train_xgb: no visible global function definition for 'model.matrix' train_xgb: no visible global function definition for 'xgb.DMatrix' Undefined global functions or variables: %>% aes geom_abline geom_point labs model.matrix obs pred predict theme_minimal tm_borders tm_compass tm_fill tm_layout tm_legend tm_scale_intervals tm_shape xgb.DMatrix Consider adding importFrom("stats", "model.matrix", "predict") 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 ... WARNING Undocumented code objects: 'africa_shp' 'africa_shps' 'panc_incidence' 'panc_prevalence' 'pancre_mort' Undocumented data sets: 'africa_shp' 'africa_shps' 'panc_incidence' 'panc_prevalence' 'pancre_mort' All user-level objects in a package should have documentation entries. See chapter 'Writing R documentation files' in the 'Writing R Extensions' manual. * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... WARNING Undocumented arguments in Rd file 'compute_spatial_autocorr.Rd' 'sf_data' 'values' 'signif' Undocumented arguments in Rd file 'eval_model.Rd' 'model' 'data' 'formula' 'model_type' Undocumented arguments in Rd file 'plot_obs_vs_pred.Rd' 'observed' 'predicted' 'title' Undocumented arguments in Rd file 'train_rf.Rd' 'data' 'formula' 'ntree' 'seed' Undocumented arguments in Rd file 'train_svr.Rd' 'data' 'formula' Undocumented arguments in Rd file 'train_xgb.Rd' 'data' 'formula' 'nrounds' 'max_depth' 'eta' 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 ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... NONE * checking for unstated dependencies in 'tests' ... OK * checking tests ... OK Running 'testthat.R' * checking for unstated dependencies in vignettes ... NOTE 'library' or 'require' calls not declared from: 'kernlab' 'nnet' 'writexl' * checking package vignettes ... OK * checking re-building of vignette outputs ... [37s] ERROR Error(s) in re-building vignettes: --- re-building 'mlspatial.Rmd' using rmarkdown Quitting from mlspatial.Rmd:316-380 [unnamed-chunk-8] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `library()`: ! there is no package called 'kernlab' --- Backtrace: ▆ 1. └─base::library(kernlab) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'mlspatial.Rmd' failed with diagnostics: there is no package called 'kernlab' --- failed re-building 'mlspatial.Rmd' SUMMARY: processing the following file failed: 'mlspatial.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [12s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 4 WARNINGs, 3 NOTEs