| defaultApp {mmstat4} | R Documentation |
defaultApp
Description
Tries to open the given file with the default application of the operating system using base::system2().
Only Windows (windows), macOS (darwin), Linux (linux) and FreeBSD (freebsd) is supported.
Usage
defaultApp(file, wait = FALSE, ...)
Arguments
file |
character: file name |
wait |
logical: indicates whether the R interpreter should wait for the command to finish, or run it asynchronously (default: |
... |
further arguments passed to |
Value
Result of try(system2, ...), invisibly
See Also
Examples
if (interactive()) {
ghget()
defaultApp(ghlist("dataanalysis.pdf", full.names = TRUE))
}
[Package mmstat4 version 0.2.1 Index]