Running examples in 'QuantNorm-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: connection.matrix
> ### Title: Construct connection matrix for network analysis
> ### Aliases: connection.matrix
> 
> ### ** Examples
> 
> 
> library(network); library(ggplot2); library(sna); library(GGally) #drawing network graph
network: Classes for Relational Data
Version 1.16.1 created on 2020-10-06.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
                    Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Martina Morris, University of Washington
                    Skye Bender-deMoll, University of Washington
 For citation information, type citation("network").
 Type help("network-package") to get started.

Loading required package: statnet.common

Attaching package: 'statnet.common'

The following object is masked from 'package:base':

    order

sna: Tools for Social Network Analysis
Version 2.6 created on 2020-10-5.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
 For citation information, type citation("sna").
 Type help(package="sna") to get started.

> 
> data("ENCODE")
> 
> #Assigning the batches based on species
> batches <- c(rep(1,13),rep(2,13))
> 
> #QuantNorm correction
> corrected.distance.matrix <- QuantNorm(ENCODE,batches,method='row/column', cor_method='pearson',
+                                        logdat=FALSE,standardize = TRUE, tol=1e-4)
Input data is a 10309 by 26 count matrix.
It may take a long time to standardize the data. 
Algorithm converged after 9 iterations. 
> 
> #Constructing connection matrix
> 
> mat <- connection.matrix(mat=corrected.distance.matrix,label=colnames(corrected.distance.matrix))
> 
> #Creating network object and plot
> ENCODE.net=network(mat, directed=FALSE)
Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
  attempt to set index 0/0 in SET_VECTOR_ELT
Calls: network ... as.network.matrix -> network.initialize -> set.vertex.attribute
Execution halted