| openFile {PBSmodelling} | R Documentation |
Open Files With Associated Program
Description
openFile attempts to open a file, based off the command set in the PBS.options\$openfile list.
If PBS.options\$openfile[[extension]] is set openFile will replace all occurrences of "%f" with
the absolute path of the filename, and then execute the command. Otherwise, if no command is set,
shell.exec() will be used.
Usage
openFile(fname)
Arguments
fname |
filename to be opened. |
Examples
## Not run:
#setup firefox to open .html files
PBS.options$openfile$html='"c:/Program Files/Mozilla Firefox/firefox.exe" %f'
openFile("foo.html")
## End(Not run)
[Package
PBSmodelling version 0.60
Index]