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

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")
#> Opening Wikipedia search for "my search terms" in browser
wp("my search terms")
#> Opening Wikipedia search for "my search terms" in browser