Running examples in ‘DrDimont-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: generate_individual_graphs
> ### Title: Builds graphs from specified network layers
> ### Aliases: generate_individual_graphs
> 
> ### ** Examples
> 
> ## Don't show: 
> WGCNA::disableWGCNAThreads()
> ## End(Don't show)
> 
> data(layers_example)
> data(correlation_matrices_example)
> 
> example_settings <- drdimont_settings(
+                         handling_missing_data=list(
+                             default="pairwise.complete.obs",
+                             mrna="all.obs"),
+                         reduction_method="pickHardThreshold",
+                         r_squared=list(default=0.65, metabolite=0.1),
+                         cut_vector=list(default=seq(0.2, 0.5, 0.01)))
[25-11-03 16:59:27] WARNING: Python executable in virtual environment 'r-DrDimont' not found. Either run `install_python_dependencies(package_manager='pip') or set `conda=TRUE` in `drdimont_settings()` if conda installation was used.
> 
> example_individual_graphs <- generate_individual_graphs(
+                                  correlation_matrices=correlation_matrices_example,
+                                  layers=layers_example, 
+                                  settings=example_settings)
[25-11-03 16:59:27] Generating graph of layer mrna for groupA...
[25-11-03 16:59:27] Reducing network by WGCNA::pickHardThreshold...
[25-11-03 16:59:27] R2 cutoff: 0.65
[25-11-03 16:59:28] Cut Threshold: 0.26
Error in `graph_from_adjacency_matrix()`:
! Cannot create a graph object because the adjacency matrix contains
  NAs.
Backtrace:
    ▆
 1. └─DrDimont::generate_individual_graphs(...)
 2.   └─DrDimont::generate_reduced_graph(...)
 3.     └─igraph::graph.adjacency(...)
 4.       └─igraph::graph_from_adjacency_matrix(...)
 5.         └─igraph:::ensure_no_na(adjmatrix, "adjacency matrix")
 6.           └─cli::cli_abort(...)
 7.             └─rlang::abort(...)
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
                              user system elapsed
compute_correlation_matrices 7.827  0.742  10.136