Open System Files, URLs, Anything
Cross platform solution to open files, directories or URLs with their associated programs. Inspired by shell.exec()
, https://github.com/pwnall/node-open and https://github.com/sindresorhus/opn
Stable version:
Development version:
Open a file:
Open a URL:
URL with given app:
chrome <- function() {
switch(
get_os(),
win = "Chrome",
macos = "google chrome",
other = "google-chrome")
}
xopen("https://processx.r-lib.org", app = chrome())
Open a given app (or switch to it, if already open):
App and arguments. (You need to quit Chrome for this to work):
MIT © RStudio