Content deleted Content added
DavidMCEddy (talk | contribs) mentioned checking for syntax errors and agreement betw. man + code ~~~~ |
DavidMCEddy (talk | contribs) m →Discussion: ~~~~ |
||
Line 13:
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 master "
<ref> {{cite article
| last = Leisch | first = Friedrich
Line 23:
| title = Creating R Packages, Using CRAN, R-Forge, And Local R Archive Networks And Subversion (SVN) Repositories
| url =http://cran.r-project.org/doc/contrib/Graves+DoraiRaj-RPackageDevelopment.pdf| }}
</ref> checks for errors of various types. This includes checking for syntax errors on both the documentation markup language and the code as well as comparing the arguments between documentation and code. Examples in the documentation 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
| title=The Comprehensive R Archive Network | url =http://cran.r-project.org}} </ref> and under development in
An interesting research question would be to compare the quality of contributions to different [[software repository | software repositories]] and try to relate that to features of the package development process, i.e., the degree of formality and enforcement of standards for documentation, code, and testing and to the rate of growth of usage of contributed software.
==See also==
|