* using log directory 'd:/RCompile/CRANincoming/R-devel/sharpshootR.Rcheck' * using R Under development (unstable) (2025-09-25 r88874 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 'sharpshootR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'sharpshootR' version '2.4' * package encoding: UTF-8 * checking CRAN incoming feasibility ... INFO Maintainer: 'Dylan Beaudette ' Suggests or Enhances not in mainstream repositories: hydromad Availability using Additional_repositories specification: hydromad yes https://hydromad.github.io * checking package namespace information ... OK * checking package dependencies ... INFO Package suggested but not available for checking: 'hydromad' * 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 'sharpshootR' 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 ... 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 ... [12s] OK * 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 ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'sharpshootR-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: table5.2 > ### Title: Table 5.2 from Hole and Campbell, 1985. > ### Aliases: table5.2 > ### Keywords: datasets > > ### ** Examples > > > data("table5.2") > > if(requireNamespace("igraph")) { + + # note special incantation to get the "correct" graph structure + g <- igraph::graph_from_adjacency_matrix(table5.2, mode = 'upper', diag = FALSE, weighted = TRUE) + + # visualize + op <- par(no.readonly = TRUE) + + par(mar = c(0,0,0,0)) + plot(g) + + plot(g, vertex.size = sqrt(igraph::degree(g) * 25), vertex.label.family = 'sans') + + # find communities + cm <- igraph::cluster_walktrap(g) + plot(cm, g, vertex.label.family = 'sans') + + par(op) + } Error in `igraph::graph_from_adjacency_matrix()`: ! Cannot create a graph object because the adjacency matrix contains NAs. Backtrace: ▆ 1. └─igraph::graph_from_adjacency_matrix(table5.2, mode = "upper", diag = FALSE, weighted = TRUE) 2. └─igraph:::ensure_no_na(adjmatrix, "adjacency matrix") 3. └─cli::cli_abort(...) 4. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... OK Running 'testthat.R' * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [14s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR