viewCode {PBSmodelling}R Documentation

View Package R Code

Description

View the R code of all functions in a specified package installed on the user's system.

Usage

viewCode(pkg="PBSmodelling", funs, output=4)

Arguments

pkg string name of a package installed on the user's computer.
funs string vector of explicit function names from pkg to view.
output numeric value: 1 = function names only, 2 = function names with brief description, 3 = functions and their arguments, and 4 = function R-code (default).

Details

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.

Value

Invisibly returns source code of all functions in the specified package. The function invokes openFile to display the results.

Author(s)

Rowan Haigh, Pacific Biological Station, Nanaimo BC


[Package PBSmodelling version 2.50.162 Index]