This is a simple R client for DuckDuckGo's Instant Answer API.
install.packages("duckduckr")
devtools::install_github("dirkschumacher/duckduckr")
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`
If you found a bug or want to propose a feature, feel free to visit the issues page.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.