carpentries-incubator / carpentries-incubator/lesson-R-packaging
Explicitly discuss the need for function-only in R files
Open
- Dominant language
- No language data
- Stars
- 5
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
A lot of errors in the last installment were caused by people having scripted code outside of their functions in the .R files. We need to emphasize as early as possible that this is not good, and the kind of errors they can expect if this is the situation.
Preferably in the earliest chapters: write some code outside the function (code should throw an error, that's even clearer), and then check/build the package.
Contributor guide
Assessment
This issue has not been assessed yet.