shell.exec

0th

Percentile

Open a File or URL using Windows File Associations

Opens the specified file or URL using the application specified in the Windows file associations.

Keywords
utilities
Usage
shell.exec(file)
Arguments
file
file or URL to be opened.
Details

The path in file is interpreted relative to the current working directory. R versions 2.13.0 and earlier interpreted file relative to the R home directory, so a complete path was usually needed. Encoded file:// URLs should be in the Windows standard form, e.g. "file:///c:/path/to/file.txt".

Value

No value, but informative error messages will be given if the operation fails.

See Also

system, shell

Aliases
  • shell.exec
Documentation reproduced from package base, version 3.3.2, License: Part of R 3.3.2

Community examples

exar10 at May 23, 2017 base v3.4.0

shell.exec("https://www.youtube.com/watch?v=dQw4w9WgXcQ")