r-novice-gapminder icon indicating copy to clipboard operation
r-novice-gapminder copied to clipboard

Functions Explained: Briefly Mention Packages

Open mjcasy opened this issue 2 years ago • 1 comments

Referring to episode : https://github.com/swcarpentry/r-novice-gapminder/blob/main/_episodes_rmd/10-functions.Rmd

Should we mention very briefly at the end that R packages are broadly just collections of functions like this? E.g. in "Tip: Testing and documenting" after mentioning roxygen2

Packages are, in essence, bundles of functions with this formal documentation. Loading your own functions through source("functions.R") is equivalent to loading someone else's functions (or your own one day!) through library("package").

mjcasy avatar Jul 26 '22 13:07 mjcasy

Thank you for your suggestion @mjcasy! This looks like a good idea to me.

Would you like to open a pull request with this change?

matthieu-bruneaux avatar Jul 30 '22 16:07 matthieu-bruneaux

This was addressed with PR #791. Thank you @mjcasy for your contribution!

matthieu-bruneaux avatar Aug 15 '22 22:08 matthieu-bruneaux