R package: degree is also masked from package graph

Bug #574269 reported by Maximilian Kofler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Won't Fix
Undecided
Gábor Csárdi

Bug Description

When loading R package graph and igraph a warning message appears:

"Attache Paket: 'igraph'

 The following object(s) are masked from package:graph :

  degree
"

Please try to rename degree (for example node_degree, idegree, ...)

Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Sorry, cannot do that, there is already too much code out there that relies on 'degree', it would just cause confusion. And there is also a 'degree' function in the 'sna' package, maybe in others as well....

Btw. the 'graph' package has a namespace, so you can still call the masked function via explicitly calling graph::degree.

Changed in igraph:
status: New → Won't Fix
assignee: nobody → Gábor Csárdi (gabor.csardi)
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/414

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.