* using log directory ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/spectralGraphTopology.Rcheck’
* using R Under development (unstable) (2025-02-26 r87830)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
    Debian clang version 19.1.7 (1+b1)
    Debian flang-new version 19.1.7 (1+b1)
* running under: Debian GNU/Linux trixie/sid
* using session charset: UTF-8
* checking for file ‘spectralGraphTopology/DESCRIPTION’ ... OK
* this is package ‘spectralGraphTopology’ version ‘0.2.3’
* package encoding: UTF-8
* 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 serialization versions ... OK
* checking whether package ‘spectralGraphTopology’ can be installed ... OK
See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/spectralGraphTopology-00install.html' for details.
* used C++ compiler: ‘Debian clang version 19.1.7 (1+b1)’
* 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 ... [0s/1s] 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/1s] OK
* checking loading without being on the library search path ... [0s/1s] 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 ... [8s/11s] OK
* checking Rd files ... [0s/1s] 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 line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking compilation flags in Makevars ... OK
* checking for GNU extensions in Makefiles ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking use of PKG_*FLAGS in Makefiles ... OK
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... 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 ... [6s/10s] ERROR
Running examples in ‘spectralGraphTopology-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: learn_k_component_graph
> ### Title: Learn the Laplacian matrix of a k-component graph Learns a
> ###   k-component graph on the basis of an observed data matrix. Check out
> ###   https://mirca.github.io/spectralGraphTopology for code examples.
> ### Aliases: learn_k_component_graph
> 
> ### ** Examples
> 
> # design true Laplacian
> Laplacian <- rbind(c(1, -1, 0, 0),
+                    c(-1, 1, 0, 0),
+                    c(0, 0, 1, -1),
+                    c(0, 0, -1, 1))
> n <- ncol(Laplacian)
> # sample data from multivariate Gaussian
> Y <- MASS::mvrnorm(n * 500, rep(0, n), MASS::ginv(Laplacian))
> # estimate graph on the basis of sampled data
> graph <- learn_k_component_graph(cov(Y), k = 2, beta = 10)
Error in max(werr/(w + w0), na.rm = "ignore") : 
  NA in coercion to Rboolean
Calls: learn_k_component_graph ... <Anonymous> -> pb_tick -> assert_named_or_empty_list -> stopifnot
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ... [5s/7s] ERROR
  Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spectralGraphTopology)
  
  Attaching package: 'spectralGraphTopology'
  
  The following object is masked from 'package:stats':
  
      D
  
  > 
  > test_check("spectralGraphTopology")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 40 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-learnGraphTopology.R:14:3'): learn_k_component_graph with single component random graph ──
  Error in `max(werr/(w + w0), na.rm = "ignore")`: NA in coercion to Rboolean
  Backtrace:
      â–†
   1. └─spectralGraphTopology::learn_k_component_graph(...) at test-learnGraphTopology.R:14:3
   2.   └─pb$tick(...)
   3.     └─progress:::pb_tick(self, private, len, tokens)
   4.       └─progress:::assert_named_or_empty_list(tokens)
   5.         └─base::stopifnot(length(x) == 0 || !is.null(names(x)))
  ── Error ('test-learnGraphTopology.R:21:1'): (code run outside of `test_that()`) ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured, 
      .interpret_glue = .interpret_glue)`: ℹ In index: 1.
  Caused by error:
  ! Failed to parse glue component
  Caused by error in `parse()`:
  ! <text>:1:1: unexpected ','
  1: ,
      ^
  ── Error ('test-learnSmoothSignalGraph.R:9:1'): (code run outside of `test_that()`) ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured, 
      .interpret_glue = .interpret_glue)`: ℹ In index: 1.
  Caused by error:
  ! Failed to parse glue component
  Caused by error in `parse()`:
  ! <text>:1:1: unexpected ','
  1: ,
      ^
  ── Error ('test-operators.R:122:1'): (code run outside of `test_that()`) ───────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured, 
      .interpret_glue = .interpret_glue)`: ℹ In index: 1.
  Caused by error:
  ! Failed to parse glue component
  Caused by error in `parse()`:
  ! <text>:1:1: unexpected ','
  1: ,
      ^
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 40 ]
  Error: Test failures
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [4s/5s] OK
* checking PDF version of manual ... [6s/8s] OK
* checking HTML version of manual ... [1s/2s] OK
* checking for non-standard things in the check directory ... OK
* DONE
Status: 2 ERRORs