R/open_url.r

Defines functions open_url

Documented in open_url

#' Open a url: quietly, in the background, and in a new window
#'
#' @param x   URL to open
#'
#' @examples
#' open_url('www.google.com')
#' @export

open_url <- function(x) {
  system2('sensible-browser', c('--new-window', x), stdout=NULL, stderr=NULL, wait=FALSE)
}
pbreheny/breheny documentation built on May 16, 2024, 9:09 a.m.