Sources example files

Description

Facilitates learning a new package, by sourcing any specified example file for an installed package.

Usage

1
loadex(pkg,exfile=NA,subdir="examples")

Arguments

pkg

Package name, quoted.

exfile

Desired example file name, if any, quoted.

subdir

Subdirectory name of the examples directory in the package.

Details

Loads the example file exfile, from the subdir directory within the tree wherepkg is installed. If exfile = NA, the names of the files are returned, without any loading.

Value

See the case exfile = NA above.

Author(s)

Norm Matloff