Building ecosystems and pipelines around S3 classes #224
Replies: 3 comments
-
Initial thoughts:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the input @Bisaloo.
I would be happy to include examples of where S4 is used. Especially across bioconductor and bioinformatics where S4 is more prevalent. However, the problem then extends to having to explain why S3 & and S4 are included, but R6, R7 and RC are not included. I don't think it's an issue and would just require a single sentence explaining the scope of the post.
Yes, that would be good to include. @pratikunterwegs has lots of spatial expertise so I can consult him once I've got a draft. I think we should not include too many classes, 2-3 should adequately explain the point we are trying to make. Let me know if you have a priority list of classes.
Sure, I'd be happy to reach out and ask if he would like to collaborate. I'll send him an email and inquire. |
Beta Was this translation helpful? Give feedback.
-
Happy to chip in as required. Agree that classes from {terra} and {sf} packages are good candidates, although their older analogues {raster} and {sp} might be more useful (S4) case studies as they have been around for longer. A good example is an MPI-AB initiative called MoveApps, that seeks to build data processing pipelines around the {move} package which is built on top of {sp} if I recall correctly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I propose writing a blog post about the benefit of designing S3 classes in R that can be used as a unit around which interoperable ecosystems (R packages in this case) can be built.
The post will have a small introduction to S3 classes in R, and then give a couple of examples of instances where S3 classes have been used as a central point of reference for methods development. My first thoughts on which packages and classes to discuss are:
phylo
class from the {ape} R packageincidence
class from the {incidence2} R packagegg
class from {ggplot2} R package (this one I'm unsure of the details so would have to do some research to be sure of the specifics and make sure that thegg[package]
derivative packages are also using the class).The post would end with some details around {epiparameter} and the proposal for the
epidist
class to become a central unit which epidemiological methods packages can adopt.I think this would follow on nicely from @Bisaloo's recent post on S3 generics.
Please leave a comment with thoughts on the viability and usefulness of the potential post and whether you know of other classes that would be useful to include.
Beta Was this translation helpful? Give feedback.
All reactions