An R script for a new function is created in the working directory. It includes Roxygen commented lines for the documentation with sensible defaults where possible.
NewFunction(FunctionName, args = NULL, NArgs = 0)
No objects are created in the workspace. The only outcome is the template file and a message to let the user know the job was completed.
The name of the function and file to create.
a vector of argument names
an integer number of arguments to assign to the function.
A. Jonathan R. Godfrey.
A file is saved in the current working directory that has a template for a function with a set of arguments (if supplied). The file still needs serious editing before insertion into a package.