Description Usage Arguments Value Author(s) Examples
This function computes a measure of the "complexity" or length of each of the functions
| 1 2 3 | getFunctionLengths(pkg, 
                   isPackage = is.integer(pkg) || pkg %in% c(search(), gsub("package:", "", search())),
                   op = function(fun) length(body(fun)), ...)
 | 
| pkg | a character vector or environment object. If this is a character vector, it is treated either as the name of an R package in the search path, or the name of a source file containing function definitions. | 
| isPackage | a logical value indicating whether the value of 
 | 
| op | |
| ... | 
A named integer vector giving the length of each of the functions.
Duncan Temple Lang
| 1 2 3 4 5 6 7 |   getFunctionLengths("package:RSourceTools")
  getFunctionLengths("RSourceTools")
  f = system.file("Rcode", "sampleCode.R", package = "RSourceTools")
  getFunctionLengths(f)
  getFunctionLengths("RSourceTools", op = functionLength)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.