Re: [R-pkg-devel] re-exporting plot method?

2024-05-01 Thread Kevin R. Coombes
Hi Simon, Thanks for the detailed answer. I had considered all those possibilities, and was hoping that I had just missed something obvious. I have been using S4 classes in my own packages for quite a while. But here, I didn't see any need to create my own class. Now, I may make my own,

Re: [R-pkg-devel] re-exporting plot method?

2024-04-30 Thread Simon Urbanek
Kevin, welcome to the S4 world! ;) There is really no good solution since S4 only works at all if you attach the package since it relies on replacing the base S3 generic with its own - so the question remains what are your options to do it. The most obvious is to simply add Depends: Rgraphviz

[R-pkg-devel] re-exporting plot method?

2024-04-30 Thread Kevin R. Coombes
Hi, I am working on a new package that primarily makes use of "igraph" representations of certain mathematical graphs, in order to apply lots of the comp sci algorithms already implemented in that package. For display purposes, my "igraph" objects already include information that defines