shell.exec(file)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.\ifelse{latex}{\out{~}}{ } "file:///c:/path/to/file.txt".
system, shell