viewCode | R Documentation |
View the R code of all functions in a specified package installed on the user's system.
viewCode(pkg="PBSmodelling", funs, output=4, ...)
pkg |
string name of a package installed on the user's computer. |
funs |
string vector of explicit function names from |
output |
numeric value: 1 = function names only, 2 = function names with brief description, 3 = functions and their arguments, and 4 = function R-code (default). |
... |
allows user to specify two additional arguments for |
If funs
is not specified, then all functions, including
hidden (dot) functions are displayed.
If the package has a namespace, functions there are also displayed.
Invisibly returns source code of all functions in the specified package.
The function invokes openFile
to display the results.
Output type 2 (function name with brief description) will now only work in
R (>=3.2.0) or from SVN revision >= 67548.
The CRAN gurus now disallow direct calls to tools:::httpdPort
.
Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
showHelp
, view
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.