* using log directory 'd:/RCompile/CRANincoming/R-devel/RavenR.Rcheck' * using R Under development (unstable) (2024-05-04 r86521 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 'RavenR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'RavenR' version '2.2.1' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [12s] Note_to_CRAN_maintainers Maintainer: 'Robert Chlumsky ' * 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 'RavenR' can be installed ... OK * 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 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... NOTE Non-standard file/directory found at top level: 'cran-comments.md' * 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 ... [17s] NOTE rvn_met_recordplot: no visible global function definition for 'na.omit' Undefined global functions or variables: na.omit Consider adding importFrom("stats", "na.omit") to your NAMESPACE file. * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'rvn_rvp_calib_template.Rd': \examples lines wider than 100 characters: rvp_template_file =system.file("extdata","nithmodel.rvp_temp.rvp", package="RavenR"), 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [24s] ERROR Running examples in 'RavenR-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: rvn_rvh_write_subbasingroup > ### Title: Write a subbasin group to Raven RVH format > ### Aliases: rvn_rvh_write_subbasingroup > > ### ** Examples > > # load example rvh file > nith <- system.file("extdata","Nith.rvh",package = "RavenR") > rvh <- rvn_rvh_read(nith) > > # query all subbasins upstream of basin 39 > rvh_upstream_of_39 <- rvn_rvh_query(rvh, subbasinID=39, condition="upstream_of") > > # temporary filename > tf <- file.path(tempdir(), 'mysubbasigroup.rvh') > > # write this subbasin group to file > rvn_rvh_write_subbasingroup(rvh=rvh_upstream_of_39, outfile=tf) Error in iseq[i]:iseq[i + 1] : NA/NaN argument Calls: rvn_rvh_write_subbasingroup -> %>% -> paste0 Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [16s] OK * checking HTML version of manual ... [14s] OK * DONE Status: 1 ERROR, 3 NOTEs