openPackageFile {PBSmodelling}R Documentation

Open a File from a Package Subdirectory

Description

Open a file from a package in the R library, given the package name and the file path relative to the package root directory.

Usage

openPackageFile(package, filepath)

Arguments

package name of the package
filepath path to file from the package's root directory

Details

The openFile function is used to open the file, using associations set by setPBSext.

To use this function in a window description file, the package and filepath arguments must be specified as the action of the widget that calls openPackageFile. Furthermore, package and filepath must be separated by commas (e.g., action=myPackage,/doc/help.pdf).

Note

If all the required arguments are missing, it is assumed that the function is being called by a GUI widget.

See Also

openFile, setPBSext, openProjFiles, openExamples

Examples

## Not run: 
openPackageFile("myPackage", "/doc/help.pdf")
## End(Not run)

[Package PBSmodelling version 2.06 Index]