Description Usage Arguments Details Value See Also Examples
The contents of one or more files of R source code will be added to the specified source package: the files themselves will be added to the R
directory, and shells for the documentation will be added to the man
directory. Unlike package.skeleton
, this function does not require one function per source file and supports both class and method definitions.
1 | packageAdd(pkg, files, path = ".", document = TRUE)
|
pkg |
The name of the package. It must be attached to the session. |
files |
The names of the files containing the R source to add to the package. |
path |
The directory under which the source for |
document |
Should a skeleton documentation for the objects be generated? |
The file of source code is copied unchanged to the "R"
subdirectory of the source package. A shell of documentation is initialized for all the objects created by the evaluating the file.
If the file generates several function objects, the documentation shells for all of these, as generated by the prompt()
function, are merged and stored under the name of the file, suffix ".Rd"
, in the "man"
subdirectory of the package.
Currently method and class documentation are generated on separate files rather than being merged with function documentation.
Nothing useful. Called for its side effects.
1 2 3 4 | ## Not run:
packageAdd("SoDA", "triDiagonal.R", "~/RPackage")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.