R/wolframalpha.r

#' Search WolframAlpha
#' @description Improve your workflow by searching WolframAlpha 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 wolframalpha internet workflow
#' @examples
#' wolframalpha("my search terms")
#' wolfram("my search terms")

#' @export
wolframalpha <- function(search_terms) {
  message("Searching WolframAlpha for \"", search_terms, "\" in browser")
  browseURL(paste0("https://www.wolframalpha.com/input/?i=", URLencode(search_terms)))
}

#' @export
#' @rdname wolframalpha
wolfram <- wolframalpha

Try the websearchr package in your browser

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

websearchr documentation built on May 2, 2019, 8:22 a.m.