shell.exec | 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. |
The path in file
should be a full path.
If the path in file
is not a full path, it is interpreted relative
to the current working directory, but in R versions 2.13.0 and earlier it
was interpreted relative to the R home directory. To be interpreted as
relative, the path also needs to use backslashes as separators (at least
in Windows 10).
Encoded file:// URLs should be in the Windows standard form,
e.g. "file:///c:/path/to/file.txt"
.
No value, but informative error messages will be given if the operation fails.
B. D. Ripley and Duncan Murdoch
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.