openPackageFile {PBSmodelling} | R Documentation |
***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.
openPackageFile(package, filepath)
package |
name of the package |
filepath |
path to file from the package's root directory |
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
).
If all the required arguments are missing, it is assumed that the function is being called by a GUI widget.
Anisa Egeli, Vancouver Island University, Nanaimo BC
openFile
, setPBSext
, openProjFiles
,
openExamples
## 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)