Skip to contents

Trace all parameters for all functions in a specified package

Usage

trace_package(
  package = NULL,
  functions = NULL,
  types = c("examples", "tests"),
  pkg_dir = NULL
)

Arguments

package

Name of package to be traced (as character value)

functions

Optional character vector of names of functions to trace. Defaults to tracing all functions.

types

The types of code to be run to generate traces: one or both values of "examples" or "tests" (as for tools::testInstalledPackage).

pkg_dir

For "types" including "tests", a local directory to the source code of the package. (This is needed because installed versions do not generally include tests.)

Value

A data.frame of data on every parameter of every function as specified in code provided in package examples.