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, ...)
Value
Result of try(system2, ...), invisibly
Arguments
file
character: file name
wait
logical: indicates whether the R interpreter should wait for the command to finish, or run it asynchronously (default: FALSE)