CRAN_Status_Badge Build Status AppVeyor Build Status Coverage Status

DuckDuckR

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

Install

From CRAN

install.packages("duckduckr")

Latest development version

devtools::install_github("dirkschumacher/duckduckr")

Use

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
library(duckduckr)
res <- duckduck_answer("ggplot")

# meta data of the call is part of the attributes
stopifnot(attr(res, "status") == "OK")

# the original http call
attr(res, "source")
res$Abstract
`r res$Abstract`

 

Contributing

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



dirkschumacher/duckduckr documentation built on May 15, 2019, 8:47 a.m.