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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: analysis_ExprNet
> ### Title: Computing and testing AT1 and AT2, and plotting sub-network
> ### Aliases: analysis_ExprNet
> 
> ### ** Examples
> 
> library(ExprNet)
> network <- network_demo
> data_type1 <- data_LGG_demo
> data_type2 <- data_GBM_demo
> edge_pair_selected <- c("1-8", "1-15", "2-16", "3-16", "5-10",
+                         "5-16", "8-11", "8-13", "8-14", "8-15", "13-15")
> # compute AT's
> AT_res <- analysis_ExprNet(data_type1 = data_type1, data_type2 = data_type2, network = network,
+                            edge_pair_selected = edge_pair_selected,
+                            AT2_perm_test = TRUE, num_perm = 250, num_cores = 2,
+                            type1_name = "LGG", type2_name = "GBM",
+                            subnet_label = "Demo_GO0006306_DNA_methylation(LGG-GBM)",
+                            vertex.label.cex = 1, vertex.size = 10, edge.width = 7)
This graph was created by an old(er) igraph version.
  Call upgrade_graph() on it to use with the current igraph version
  For now we convert it on the fly...

Data read successfully.
17 features
5 samples for phenotype 1
5 samples for phenotype 2.

Graph imported successfully.
There are 17 vertices and 17 edges in the graph.

---Computing edge length and t statistics---
3 / 17 Edges Computed
6 / 17 Edges Computed
10 / 17 Edges Computed
13 / 17 Edges Computed
17 / 17 Edges Computed

Among 17 edge distances, 
4 of them have significant differences at 0.05 level.
5 of them > 0.
12 of them < 0.


The subnetwork consists of 11 edges.


---Computing AT1---

AT1 = 0.67, pval_AT1 = 0.0529


---Computing AT2---

The permutation test may take some time, especially for high dimension. Please stay tuned.

Parallel Computing: 2 cores registered.

Error in { : task 1 failed - "cannot use 'paired' in formula method"
Calls: analysis_ExprNet -> compute_AT -> %dopar% -> <Anonymous>
Execution halted