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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: alc
> ### Title: Average local clustering (alc) coefficient
> ### Aliases: alc
> 
> ### ** Examples
> 
> 
> # get fluency data
> data(animal_fluency)
> 
> # edge lists of fluency graphs
> edge_list = threshold_graph(animal_fluency)
> 
> # get adjacency matrices
> adj = edg_to_adj(edge_list)
> 
> # get local average clustering coefficient
> alc(adj)
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
memnet
 --- call from context --- 
alc(adj)
 --- call from argument --- 
if (class(adj) != "igraph") {
    g = igraph::graph_from_adjacency_matrix(adj, mode = mode)
    if (!is.null(weights)) 
        igraph::E(g)$weight = weights
} else {
    g = adj
}
 --- R stacktrace ---
where 1: alc(adj)

 --- value of length: 2 type: logical ---
[1] TRUE TRUE
 --- function from context --- 
function (adj, types = "uncorrected", weights = NULL, mode = "undirected") 
{
    if (class(adj) != "igraph") {
        g = igraph::graph_from_adjacency_matrix(adj, mode = mode)
        if (!is.null(weights)) 
            igraph::E(g)$weight = weights
    }
    else {
        g = adj
    }
    res = c()
    cc = igraph::transitivity(g, type = "localaverage")
    for (type in types) {
        if (type == "uncorrected") {
            res = c(res, cc)
            names(res)[length(res)] = "cc"
        }
        else if (type == "corrected") {
            nv = igraph::vcount(g)
            ne = igraph::ecount(g)
            k = ne/nv
            res = c(res, cc/(k/nv))
            names(res)[length(res)] = "cc_c"
        }
    }
    res
}
<bytecode: 0x561722e7ca58>
<environment: namespace:memnet>
 --- function search by body ---
Function alc in namespace memnet has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1