adamsardar / stoneTrees

Integrating 'omics data with biological networks by solving Steiner Tree problems
Mozilla Public License 2.0
3 stars 3 forks source link

Explore the use of purr's functions #12

Open adamsardar opened 4 years ago

adamsardar commented 4 years ago

I think that this would improve readability

adamsardar commented 4 years ago

Essentially, we could prepare functions separately to the main class and then use R's environment mechanism to hook them in. Would also allow for testing.

adamsardar commented 4 years ago

In fact, according to AdvancedR one can use S3 methods on R6 objects via the classname.

adamsardar commented 4 years ago

R6 allows this through use of $set on the class definition