Skip to content

Commit

Permalink
Reverted chances from commit cee31ae, which intercepted parsing of ne…
Browse files Browse the repository at this point in the history
…twork()

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.
  • Loading branch information
CarterButts committed Dec 8, 2024
1 parent 977094e commit 6883cbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: network
Version: 1.19.0
Date: 2024-12-06
Date: 2024-12-07
Title: Classes for Relational Data
Authors@R: c(
person("Carter T.", "Butts", role=c("aut","cre"), email="buttsc@uci.edu"),
Expand Down
10 changes: 4 additions & 6 deletions R/constructors.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# David Hunter <dhunter@stat.psu.edu> and Mark S. Handcock
# <handcock@u.washington.edu>.
#
# Last Modified 06/08/21
# Last Modified 12/07/24
# Licensed under the GNU General Public License version 2 (June, 1991)
# or greater
#
Expand Down Expand Up @@ -43,11 +43,9 @@ network<-function(x, vertex.attr=NULL, vertex.attrnames=NULL,
multiple=FALSE, bipartite=FALSE, ...)
{
#Initialize the network object
mc <- match.call()
mc$vertex.attr <- NULL
mc[[1]] <- as.name("as.network")
g <- eval.parent(mc)

g<-as.network(x,directed=directed,hyper=hyper,loops=loops,
multiple=multiple,bipartite=bipartite,...)

#Add vertex attributes, if needed
if(!is.null(vertex.attr)){
#Create vertex attribute names, if needed
Expand Down

0 comments on commit 6883cbd

Please sign in to comment.