R/rdrr.io.R

Defines functions rdrr.io

Documented in rdrr.io

#' Search rdrr.io
#' @description Improve your workflow by searching rdrr.io directly from the console without having to switching to the browser and
#' opening a new tab first.
#' @param search.terms Search terms encapsulated in " ".
#' @keywords rdrr.io internet workflow
#' @examples
#' rdrr.io("my search terms")
#' rdrr("my search terms")

#' @export
rdrr.io <- function(search.terms) {
  message("Opening rdrr.io search for \"", search.terms, "\" in browser.")
  browseURL(paste0("https://rdrr.io/search?q=", URLencode(search.terms)))
}

#' @export
#' @rdname rdrr.io
rdrr <- rdrr.io
fschaff/internetworkflow documentation built on July 20, 2017, 1:14 a.m.