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

> ### Name: modulePreservation
> ### Title: Replication and preservation of network modules across datasets
> ### Aliases: modulePreservation
> 
> ### ** Examples
> 
> # load in example data, correlation, and network matrices for a discovery and test dataset:
> data("NetRep")
> 
> # Set up input lists for each input matrix type across datasets. The list
> # elements can have any names, so long as they are consistent between the
> # inputs.
> network_list <- list(discovery=discovery_network, test=test_network)
> data_list <- list(discovery=discovery_data, test=test_data)
> correlation_list <- list(discovery=discovery_correlation, test=test_correlation)
> labels_list <- list(discovery=module_labels)
> 
> # Assess module preservation: you should run at least 10,000 permutations
> preservation <- modulePreservation(
+  network=network_list, data=data_list, correlation=correlation_list, 
+  moduleAssignments=labels_list, nPerm=1000, discovery="discovery", 
+  test="test", nThreads=2
+ )
[2019-12-23 19:37:23 GMT] Validating user input...
[2019-12-23 19:37:23 GMT]   Checking matrices for problems...
[2019-12-23 19:37:23 GMT] Input ok!
[2019-12-23 19:37:23 GMT] Calculating preservation of network subsets from
                          dataset "discovery" in dataset "test".
[2019-12-23 19:37:23 GMT]   Pre-computing network properties in dataset
                            "discovery"...
[2019-12-23 19:37:24 GMT]   Calculating observed test statistics...
[2019-12-23 19:37:24 GMT]   Generating null distributions from 1000
                            permutations using 2 threads...


    0% completed.
   27% completed.
   55% completed.Error in PermutationProcedure(discProps, dataEnv$matrix, correlationEnv$matrix,  : 
  BLAS/LAPACK routine 'DORGQRNo transposeCo' gave error code -3
Calls: modulePreservation ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Error in gc() : 
  R_Reprotect: only 15 protected items, can't reprotect index 20
Calls: modulePreservation -> gc

 *** caught segfault ***
address 0, cause 'memory not mapped'
An irrecoverable exception occurred. R is aborting now ...
Execution halted

31810054% completed.