https://github.com/dirkschumacher/duckduckr
🦆🦆🚶 DuckDuckGo's Instant Answer API for R
https://github.com/dirkschumacher/duckduckr
api duckduckgo duckduckhack r
Last synced: 5 months ago
JSON representation
🦆🦆🚶 DuckDuckGo's Instant Answer API for R
- Host: GitHub
- URL: https://github.com/dirkschumacher/duckduckr
- Owner: dirkschumacher
- License: other
- Created: 2017-04-03T17:28:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-14T21:25:48.000Z (almost 8 years ago)
- Last Synced: 2024-11-16T02:19:57.417Z (5 months ago)
- Topics: api, duckduckgo, duckduckhack, r
- Language: R
- Homepage: https://duckduckgo.com/api
- Size: 36.1 KB
- Stars: 43
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: COPYING
Awesome Lists containing this project
- jimsghstars - dirkschumacher/duckduckr - 🦆🦆🚶 DuckDuckGo's Instant Answer API for R (R)
README
---
output: github_document
---
[](https://cran.r-project.org/package=duckduckr)
[](https://travis-ci.org/dirkschumacher/duckduckr)
[](https://ci.appveyor.com/project/dirkschumacher/duckduckr)
[](https://codecov.io/github/dirkschumacher/duckduckr?branch=master)
[](http://cran.rstudio.com/web/packages/duckduckr/index.html)# DuckDuckR
This is a simple *R* client for [DuckDuckGo's Instant Answer API](https://duckduckgo.com/api).
## Install
### From CRAN
```{r, eval=FALSE}
install.packages("duckduckr")
```### Latest development version
```{r, eval=FALSE}
devtools::install_github("dirkschumacher/duckduckr")
```## Use
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
``````{r}
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")
``````{r,eval=FALSE}
res$Abstract
```
`r res$Abstract`
Â## Contributing
If you found a bug or want to propose a feature, feel free to visit the [issues page](https://github.com/dirkschumacher/duckduckr/issues).