openFile {PBSmodelling}R Documentation

Open a File with an Associated Program

Description

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.

Usage

openFile(fname)

Arguments

fname name of file to open.

Value

An invisible string vector of the file names and/or commands + file names.

Note

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.

See Also

getPBSext, setPBSext, clearPBSext, writePBSoptions

Examples

## 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)

[Package PBSmodelling version 2.06 Index]