Package 'websearchr'

Title: Access Domains and Search Popular Websites
Description: Functions for accessing domains and a number of search engines.
Authors: Florian S. Schaffner [aut, cre] , Charles Crabtree [ctb]
Maintainer: Florian S. Schaffner <[email protected]>
License: MIT + file LICENSE
Version: 0.0.3
Built: 2025-03-01 05:36:20 UTC
Source: https://github.com/fschaffner/websearchr

Help Index


Search Bing

Description

Improve your workflow by searching Bing directly from the console without having to switching to the browser and opening a new tab first.

Usage

bing(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

bing("my search terms")

Find DOI's and other bibliographic metadata

Description

Search crossref.org directly from the R console without having to switching to the browser and opening a new tab first.

Usage

crossref(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

crossref("my source")

Search Duckduckgo

Description

Improve your workflow by searching with duckduckgo.com directly from the console without having to switching to the browser and opening a new tab first.

Usage

duckduckgo(search_terms)

ddg(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

duckduckgo("my search terms")
ddg("r-project")

Search GitHub

Description

Improve your workflow by searching GitHub directly from R console.

Usage

github(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

github("ggplot extensions")

Search Google

Description

Improve your workflow by searching google directly from the console without having to switching to the browser and opening a new tab first.

Usage

google(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

google("my search terms")

Search Google Scholar

Description

Improve your workflow by searching Google Scholar directly from the console without having to switching to the browser and opening a new tab first.

Usage

google_scholar(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

google_scholar("my search terms")

Get last error

Description

This is a helper function that returns the last produced error message in R, which is intended to be used within any of the search functions of the websearchr package. It adds the keyword "R" to the beginning for improved accuracy of search results.

Usage

last_error()

Examples

# Query last error message
last_error()

Get last warning

Description

This is a helper function that returns the last produced warning message in R, which is intended to be used within any of the search functions of the websearchr package. It adds the keyword "R" to the beginning for improved accuracy of search results.

Usage

last_warning()

Examples

## Not run: 
# Create example warning
warning("Example warning")

# Query last warning message
last_warning()

## End(Not run)

Search Qwant

Description

Improve your workflow by searching Qwant directly from the console without having to switching to the browser and opening a new tab first.

Usage

qwant(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

qwant("my search terms")

Search r-bloggers.com

Description

Improve your workflow by searching r-bloggers.com directly from the console without having to switching to the browser and opening a new tab first.

Usage

r_bloggers(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

r_bloggers("my search terms")

Search rdocumentation.org

Description

Improve your workflow by searching rdocumentation.org directly from the console without having to switching to the browser and opening a new tab first.

Usage

rdocumentation(search_terms)

rdoc(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

rdocumentation("my search terms")
rdoc("package I am looking for")

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.

Usage

rdrr_io(search_terms)

rdrr(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

rdrr_io("my search terms")
rdrr("my search terms")

Search Reddit

Description

Improve your workflow by searching Reddit directly from the console without having to switching to the browser and opening a new tab first.

Usage

reddit(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

reddit("my search terms")

Search Stackoverflow

Description

Improve your workflow by searching Stackoverflow directly from R console.

Usage

stackoverflow(search_terms)

so(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

stackoverflow("r date conversion")
so("r ggplot2 geom_smooth()")

Search Startpage

Description

Improve your workflow by searching with startpage.com directly from the console without having to switching to the browser and opening a new tab first.

Usage

startpage(search_terms)

sp(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

startpage("my search terms")
sp("r-project")

Search Twitter

Description

Improve your workflow by searching Twitter directly from the console without having to switching to the browser and opening a new tab first.

Usage

twitter(search_terms, lang = c("en", "de", "es", "fr"))

Arguments

search_terms

Search terms encapsulated in " ".

lang

Specify in which language Twitter should be accessed One of c("en", "de", "es" "fr") for English, German, Spanish and French, respectively.

Examples

twitter("rstudiotips")

Access Domain

Description

Improve your workflow by accessing web directly from R console.

Usage

web(address, https = TRUE, suppressWWW = FALSE)

Arguments

address

The web address you want to open, encapsulated in " ".

https

if FALSE "http" will be used instead of the default "https".

suppressWWW

if TRUE "www" will be suppressed and the user input will follow directly after https://

Examples

web("r-project.org")

Search Wikipedia

Description

Improve your workflow by searching Wikipedia directly from the console without having to switching to the browser and opening a new tab first.

Usage

wikipedia(search_terms, lang = c("en", "de", "es", "fr"))

wp(search_terms, lang = c("en", "de", "es", "fr"))

Arguments

search_terms

Search terms encapsulated in " ".

lang

In which language Wikipedia should be accessed. One of c("en", "de", "es" "fr") for English, German, Spanish and French, respectively.

Examples

wikipedia("my search terms")
wp("my search terms")

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.

Usage

wolframalpha(search_terms)

wolfram(search_terms)

Arguments

search_terms

Search terms encapsulated in " ".

Examples

wolframalpha("my search terms")
wolfram("my search terms")