R/helpers.R

Defines functions view_url

# this function from usthis:::view_url
#' @importFrom utils browseURL
#' @importFrom usethis ui_todo ui_done
view_url <- function(url, open = interactive()) {
  if (open) {
    ui_done("Opening URL {url}")
    utils::browseURL(url)
  } else {
    ui_todo("Open URL {url}")
  }
  invisible(url)
}

Try the sendgridr package in your browser

Any scripts or data that you put into this service are public.

sendgridr documentation built on Nov. 10, 2022, 5:15 p.m.