Michael C Sachs
2019-11-27
At a bare minimum, we want code to be:
Nice to have, but not absolutely necessary
Through automated testing
Building an R package is one way, with many distinct advantages
Woody: Buzz, you’re flying!
Buzz Lightyear: This isn’t flying, this is R coding with style.
The DESCRIPTION file contains basic information about the package in the following format:
Package: pkgname
Version: 0.5-1
Date: 2015-01-01
Title: My First Collection of Functions
Authors@R: c(person("Joe", "Developer", role = c("aut", "cre"),
email = "Joe.Developer@some.domain.net"),
person("Pat", "Developer", role = "aut"),
person("A.", "User", role = "ctb",
email = "A.User@whereever.net"))
Author: Joe Developer [aut, cre],
Pat Developer [aut],
A. User [ctb]
Maintainer: Joe Developer <Joe.Developer@some.domain.net>
Depends: R (>= 3.1.0), nlme
Suggests: MASS
Description: A (one paragraph) description of what
the package does and why it may be useful.
License: GPL (>= 2)
URL: https://www.r-project.org, http://www.another.url
BugReports: https://pkgname.bugtracker.url
Failing to include a license implicity declares a copyright without explaining if or how others can use your code
I prefer the MIT license, it is short and understandable to lay people
man/
subdirectory contains documentation files in a specific formatvignettes/
subdirectory contains long form documentation in pdf or html formatvolunteers needed!