* using log directory 'd:/RCompile/CRANincoming/R-devel/RadEro.Rcheck' * using R Under development (unstable) (2024-09-18 r87177 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'RadEro/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'RadEro' version '1.0.3' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Arturo Catala ' New submission No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(given = "Arturo", family = "Catala", role = c("aut", "cre"), email = "acatalae@gmail.com"), person(given = "Borja", family = "Latorre", role = "aut"), person(given = "Leticia", family = "Gaspar", role = "aut"), person(given = "Ana", family = "Navas", role = "aut")) as necessary. * 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 'RadEro' can be installed ... WARNING Found the following significant warnings: cJSON.h:83:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.h:86:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.h:87:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.h:88:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.h:92:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.h:93:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.c:37:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.c:73:15: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.c:502:8: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.c:503:8: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.c:504:8: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.c:508:8: warning: function declaration isn't a prototype [-Wstrict-prototypes] cJSON.c:509:8: warning: function declaration isn't a prototype [-Wstrict-prototypes] defs.h:34:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] model.c:38:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] See 'd:/RCompile/CRANincoming/R-devel/RadEro.Rcheck/00install.out' for details. * used C compiler: 'gcc.exe (GCC) 13.2.0' * used C++ compiler: 'g++.exe (GCC) 13.2.0' * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... WARNING Dependence on R version '4.3.1' not with patchlevel 0 * checking top-level files ... NOTE Non-standard file/directory found at top level: 'RadEro.Rproj' * 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 ... WARNING '::' or ':::' import not declared from: 'dplyr' * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [13s] NOTE RadEro_run: no visible global function definition for 'read.table' RadEro_run: no visible global function definition for 'write.table' plot: no visible global function definition for 'read.table' plot: no visible global function definition for 'tail' plot: no visible global function definition for 'stepfun' plot: no visible global function definition for 'head' plot: no visible binding for global variable 'x' plot: no visible binding for global variable 'y' plot: no visible binding for global variable 'depth1' plot: no visible binding for global variable 'num2' plot: no visible binding for global variable 'midPROF' plot: no visible binding for global variable 'invCS' resample_config: no visible global function definition for 'tail' resample_data: no visible global function definition for 'tail' resample_data: no visible global function definition for 'head' resample_data: no visible global function definition for 'write.table' Undefined global functions or variables: depth1 head invCS midPROF num2 read.table stepfun tail write.table x y Consider adding importFrom("stats", "stepfun") importFrom("utils", "head", "read.table", "tail", "write.table") 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 data sets: 'input-data_example' 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 'plot.Rd' 'data1' 'data2' 'dir1' 'dir2' 'AxisMaxValue' 'cell_value' Undocumented arguments in Rd file 'resample_config.Rd' 'data2' 'config1' 'dir1' Undocumented arguments in Rd file 'resample_data.Rd' 'data2' 'dir1' 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 ... WARNING Files not of a type allowed in a 'data' directory: 'input-config_example.js' Please use e.g. 'inst/extdata' for non-R data files * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... ERROR Running examples in 'RadEro-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: RadEro > ### Title: RadEro: Physically Based Compartmental Model for 137Cs Analysis > ### and Soil Redistribution Rates Estimation > ### Aliases: RadEro-package RadEro > ### Keywords: internal > > ### ** Examples > > # Example workflow for running the RadEro model: > > # Step 1: Define your working directory > directory <- getwd() # You can change this to any other directory if needed > > # Step 2: Copy example files (.csv and .js) from the package to the working directory > RadEro_example(directory) Copied: input-data_example.csv to d:/RCompile/CRANincoming/R-devel/RadEro.Rcheck Copied: input-config_example.js to d:/RCompile/CRANincoming/R-devel/RadEro.Rcheck > # Those files can be used as templates for your own projects. > > # Step 3: Execute the model with the example files > RadEro_run(data = "archivo_ejemplo.csv", config = "archivo_ejemplo.js") Starting RadEro_run... Current directory: d:/RCompile/CRANincoming/R-devel/RadEro.Rcheck Error in fread(file.path(dir2, data), sep = ";", header = TRUE) : File 'd:/RCompile/CRANincoming/R-devel/RadEro.Rcheck/archivo_ejemplo.csv' does not exist or is non-readable. getwd()=='d:/RCompile/CRANincoming/R-devel/RadEro.Rcheck' Calls: RadEro_run -> fread -> stopf -> raise_condition -> signal Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 6 WARNINGs, 3 NOTEs