make get.vertex.attribute and list.vertex.attributes generics#14
make get.vertex.attribute and list.vertex.attributes generics#14chad-klumb merged 9 commits intostatnet:masterfrom chad-klumb:tergmLiteterms
Conversation
for vertex attribute listing and extraction pertains to statnet/tergmLite#23
with existing implementations becoming the network class methods pertains to statnet/tergmLite#23
to note that get.vertex.attribute and list.vertex.attributes are now generics
suggested in c34fa23 ... was also added to network methods, consistent with earlier changes, e.g. 979a40c pertains to statnet/tergmLite#23
to reflect changed arguments suggested in c34fa23 pertains to statnet/tergmLite#23
|
I wish I had all the knowledge needed to be able to respond intelligently and usefully to your questions here, @chad-klumb. Alas I will need to leave it to @krivit and @martinamorris to do so. |
|
windows revdeps with statnet2 ran out of memory so I'm deleting some stuff and restarting the tests there also separately made changes to assuming statnet2 tests come back same as before I will add the removal of attrname to this PR (unless there are stated objections); it's a little weird for the generic |
|
this seems like a great!, ... I thought there were some gotchas when we looked at this before, but don't see any, can you do PR for the network and networkDynamic changes? |
|
statnet2 results were also the same with so I've added commits to remove also made a PR for changes to some Travis builds for I think we are now in a position to merge #14 into If there are any questions or lingering concerns about these PRs please let me know. |
|
If the |
|
Same error message when omitting It could possibly be made more informative but I think it's already pretty reasonable. |
|
message seems very clear! :-) If this is going to master, can you increment the (minor) version and changelog? |
done |
|
merging with blessings from Carter (via email) |
* tweak get/list.vertex.attribute(s).active R code for compatibility with changes to network * tweak docs for get/list.vertex.attribute(s).active for compatibility with changes to network * add S3method lines for get/list.vertex.attribute(s).active for compatibility with changes to network * point travis to new version of network we should change to statnet/network@master once statnet/network#14 is merged * bump date, version, and network version requirement * Update ChangeLog * point to statnet/network@master * default to CRAN network since that appears to be up now * require current CRAN network version
PR to convert a couple of accessors to generics.
Ran revdeps on statnet2 for current
networkmasterand also the version ofnetworkin this PR. Only change in results was a new warning and a new note fornetworkDynamic:With
get.vertex.attributeandlist.vertex.attributesbeing made generic, thenetworkDynamicfunctionsget.vertex.attribute.activeandlist.vertex.attributes.active"appear" to be S3methods, hence the warning/note. (The tests passed, anyway.) It looks like similar warnings were addressed in the past, e.g. in statnet/networkDynamic@651823a, by adding S3method lines tonetworkDynamic's NAMESPACE, adding an ellipsis to the function arguments, and tweaking the docs to use\method.The one hitch in this case is that
networkDynamic'sget.vertex.attribute.activedoesn't take theattrnameargument. To quash the warning in this case, we may need to removeattrnamefrom the generic. I don't expect that would cause behavioral problems (I can re-run tests with that change to make sure), but would modify user-facing content somewhat. What do people think about how to handle this issue?Revdep summary for current
networkon statnet2:Summary for proposed
networkon statnet2 (theOK -> WARNwasnetworkDynamic):Since many revdeps errored due to dependencies (often RSiena) not being installable on statnet2, I also tested on a windows machine (which supported RSiena, but had issues with vignettes, so the windows tests do not include vignettes).
Summary for current
networkon windows (with no vignettes, which is what caused the warning fornetwork):Summary for proposed
networkon windows:(Again, the
OK -> WARNwasnetworkDynamic.)All revdep errors above were related to dependencies of the revdep or the revdep itself not being installable (they weren't test failures).
I was hoping to merge this in about 24 hours but we need to decide what to do about the generic argument first. So, interested parties, please let me know what you'd prefer to do here.