Simple Client for the DuckDuckGo Instant Answer API

Programmatic access to the DuckDuckGo Instant Answer API < https://api.duckduckgo.com/api>.


CRAN_Status_Badge Build Status AppVeyor Build Status Coverage Status

This is a simple R client for DuckDuckGo's Instant Answer API.

Install

devtools::install_github("dirkschumacher/duckduckr")

Use

library(duckduckr)
res <- duckduck_answer("ggplot")
stopifnot(attr(res, "status") == "OK")
 
# the original http call
attr(res, "source")
#> [1] "https://api.duckduckgo.com/?q=ggplot&no_redirect=0&no_html=0&format=json&skip_disambig=0&t=duckduckr"
res$Abstract
ggplot2 is a data visualization package for the statistical programming language R. Created by Hadley Wickham in 2005, ggplot2 is an implementation of Leland Wilkinson's Grammar of Graphics—a general scheme for data visualization which breaks up graphs into semantic components such as scales and layers. ggplot2 can serve as a replacement for the base graphics in R and contains a number of defaults for web and print display of common scales. Since 2005, ggplot2 has grown in use to become one of the most popular R packages. It is licensed under GNU GPL v2.
 

Contributing

If you found a bug or want to propose a feature, feel free to visit the issues page.

News

duckduckr 1.0.0

  • First release of the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("duckduckr")

1.0.0 by Schumacher Dirk, 2 years ago


https://github.com/dirkschumacher/duckduckr


Report a bug at https://github.com/dirkschumacher/duckduckr/issues


Browse source code at https://github.com/cran/duckduckr


Authors: Schumacher Dirk [aut, cre]


Documentation:   PDF Manual  


Task views: Web Technologies and Services


MIT + file LICENSE license


Imports crul, jsonlite

Suggests testthat, covr


See at CRAN