openPackageFile {PBSmodelling}R Documentation

Open a File from a Package Subdirectory

Description

***this function will be depricated - use openFile or doAction with openFile***

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.

Author(s)

Anisa Egeli, Vancouver Island University, Nanaimo BC

See Also

openFile, setPBSext, openProjFiles, openExamples

Examples

## Not run: 
#use openFile directly:
openFile( "doc/PBSmodelling-UG.pdf", package="PBSmodelling" )

#via doAction in a window description file:
createWin( "button text=help func=doAction action=\"openFile( `doc/PBSmodelling-UG.pdf`, package=`PBSmodelling` )\"", astext=TRUE )
        
## End(Not run)

[Package PBSmodelling version 2.55.175 Index]