carpentries-incubator / carpentries-incubator/lesson-R-packaging

Explicitly discuss the need for function-only in R files

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.