Guillawme / rfret

Analyze FRET Binding Data with R
https://guillawme.github.io/rfret
Other
2 stars 5 forks source link

Eliminate code duplication #42

Open Guillawme opened 6 years ago

Guillawme commented 6 years ago

There is currently a fair amount of code duplication, and stabilizing the interface requires getting rid of this duplication. The goal would be to have generic functions for most tasks, internally calling specialized functions based on the value of a parameter. This way, extending the package would simply require adding a specialized function and a parameter caught by a switch statement in the generic function.

This refactoring started in #33 and fd7f1a6d5e6737c6bb09488222eb39c12c5adc0a

More things to refactor: