Skip to content

Commit 6883cbd

Browse files
committed
Reverted chances from commit cee31ae, which intercepted parsing of network()
constructor calls; this seems to have caused havoc with many packages, unfortunately in ways that were not caught(!) by revdepcheck. I believe that this change had been made with the intent of improving handling of certain complex assignment calls involving NAs, but it changes dispatching in a manner that turns out not to work well.
1 parent 977094e commit 6883cbd

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: network
22
Version: 1.19.0
3-
Date: 2024-12-06
3+
Date: 2024-12-07
44
Title: Classes for Relational Data
55
Authors@R: c(
66
person("Carter T.", "Butts", role=c("aut","cre"), email="buttsc@uci.edu"),

R/constructors.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# David Hunter <dhunter@stat.psu.edu> and Mark S. Handcock
77
# <handcock@u.washington.edu>.
88
#
9-
# Last Modified 06/08/21
9+
# Last Modified 12/07/24
1010
# Licensed under the GNU General Public License version 2 (June, 1991)
1111
# or greater
1212
#
@@ -43,11 +43,9 @@ network<-function(x, vertex.attr=NULL, vertex.attrnames=NULL,
4343
multiple=FALSE, bipartite=FALSE, ...)
4444
{
4545
#Initialize the network object
46-
mc <- match.call()
47-
mc$vertex.attr <- NULL
48-
mc[[1]] <- as.name("as.network")
49-
g <- eval.parent(mc)
50-
46+
g<-as.network(x,directed=directed,hyper=hyper,loops=loops,
47+
multiple=multiple,bipartite=bipartite,...)
48+
5149
#Add vertex attributes, if needed
5250
if(!is.null(vertex.attr)){
5351
#Create vertex attribute names, if needed

0 commit comments

Comments
 (0)