You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
joethorley edited this page Dec 24, 2014
·
2 revisions
##Package Design
The website on R packages by Hadley Wickham is considered the bible for the overall package design.
It is of course at http://r-pkgs.had.co.nz. We will follow his instructions to the letter unless
we have a strong reason to diverge (and we will document this).
The other key reference is Advanced R also by Hadley Wickham. http://adv-r.had.co.nz. It is not necessary
to read everything but if we have questions regarding R programming this will be our go to reference.
Testing
We will perform testing using the testthat package.
Messages and Errors
We will check basic information about arguments such as is.string, is.flag etc using
the asserrtthat package as this gives informative error messages. We make
all errors, warnings or messages informative so the user can fix quickly and easier. If in doubt
we will throw an error to stop the user doing something stupid.