shell.exec {base} | R Documentation |
Opens the specified file or URL using the application specified in the Windows file associations.
shell.exec(file)
file |
file or URL to be opened. |
It is likely that file
needs to be a complete path, e.g.
‘"c:/R/results.html"’ or ‘"c:\R\results.html"’ as most
applications interpret files relative to their working
directory.
Encoded file://
URLs are not usually accepted.
No value, but informative error messages will be given if the operation fails.
B. D. Ripley
system
, shell
## Not run:
## the space should not be encoded here
shell.exec("C:\\Program Files\\BreezeSys\\BreezeBrowser\\Breezebrowser.htm")
shell.exec("C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")
shell.exec("file://C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")
## End(Not run)