Content deleted Content added
DavidMCEddy (talk | contribs) m fix an HTML ref ~~~~ |
DavidMCEddy (talk | contribs) enhance discussion ~~~~ |
||
Line 15:
For example, a [[Python (programming language)|Python]] package combines documentation, code and initial set up and possibly examples that could be used as [[unit testing|unit tests]] in a single file with a "py" extension.
By contrast, an [[R (programming language)|R]] package has documentation with examples in files separate from the code, possibly bundled with other material such as sample data sets and introductory ''vignettes''. The source code for an R package is contained in a directory with a "DESCRIPTION" file and subdirectories "man" containing documentation files, "R", with files of code, and perhaps others. <ref> {{cite book|title=Writing R Extensions |authorlink=<!-- R Development Core Team --> |url =http://cran.r-project.org/doc/manuals/R-exts.html | }} </ref> A formal package compilation process checks for errors of various types. Examples included in the documentation files are tested and produce error messages if they fail. This can be used as a primitive form of [[unit testing]]; more formal unit tests and [[regression testing]] can be included in a "tests" subdirectory.
==See also==
|