carpentries-incubator / lesson-R-packaging

R Packaging
https://carpentries-incubator.github.io/lesson-R-packaging/
Other
5 stars 10 forks source link

modular code and refactoring #74

Closed bvreede closed 1 year ago

bvreede commented 2 years ago

An R package consists of functions. This is introduced in Episode 4, but the fact that modular code is essential for packages is not mentioned explicitly. Introducing modules/building blocks and their value in code reuse would be a good addition to this chapter.

In addition, R users making the step towards packaging may often have to refactor their scripted code to functions, so it is important to understand how to go about this process.

In this chapter, the difference between functions available to the user, and helper functions can also be discussed.

PabRod commented 2 years ago

Redundant with #78