This is my powers package on Gituhb.
Tasks:
Define and export at least one new function, i.e. make it available to a user. We’d prefer more than one. Feel free to improve (or delete) the functions we already have.
In addition to the 'pow()' function, I have defined the 'square()' and 'cube()' functions. You can see my scripts here
Give function arguments sensible defaults, where relevant.
'pow()' has a default of 2, but 'square()' and 'cube()' are automatically set to 2 and 3, respectively (obviously)
Use assertions to add some validity checks of function input.
Document all exported functions.
My function is documented with a DESCRIPTION, manual, vignette, and README
Include at least three unit tests for every function that is exported. There should be at least one expectation for success and one for failure.
You can see all of my tests here. There is a script for each function with several tests each.
Your package should pass check() without errors (warnings and notes are OK, though it would be great if there were none).
No errors, warnings when I use 'check()', but there is 1 note because I added ‘STAT547README.md’ at the top level which is "non-standard"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.