| openFile {PBSmodelling} | R Documentation |
Open a file using the program associated with its extension
defined by the Windows shell. Non-windows users, or users
wishing to overide the default application, can specify a
program association using setPBSext.
openFile(fname)
fname |
name of file to open. |
An invisible string vector of the file names and/or commands + file names.
If a command is registered with setPBSext, then
openFile will replace all occurrences of "%f"
with the absolute path of the filename, before executing the command.
getPBSext, setPBSext, clearPBSext,
writePBSoptions
## Not run:
# Set up firefox to open .html files
setPBSext("html", '"c:/Program Files/Mozilla Firefox/firefox.exe" file://%f')
openFile("foo.html")
## End(Not run)