-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
56 lines (37 loc) · 2.12 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
[![Travis build status](https://travis-ci.org/SamanthaToet/yelpr.svg?branch=master)](https://travis-ci.org/SamanthaToet/yelpr) [![Codecov test coverage](https://codecov.io/gh/SamanthaToet/yelpr/branch/master/graph/badge.svg)](https://codecov.io/gh/SamanthaToet/yelpr?branch=master) [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/yelpr)](https://CRAN.R-project.org/package=yelpr)
# yelpr
R client for accessing the [Yelp Fusion API](https://www.yelp.com/developers/documentation/v3).
## Installation
You can install the in-development version from GitHub using the `remotes` package.
``` r
install.packages("devtools")
remotes::install_github("SamanthaToet/yelpr")
```
If you encounter a bug, have usage questions, or want to share ideas to make this package better, feel free to file an [issue](https://github.com/SamanthaToet/yelpr/issues).
## Connecting to Yelp
To interface with the Yelp API, you'll need to register a [Yelp Developer account](https://www.yelp.com/developers) and then [create an app](https://www.yelp.com/developers/v3/manage_app). Your app will auto generate a `Client ID` and `API Key`. Copy the value for the `API Key` and save that value in your keyring by running the below code:
``` r
keyring::key_set("yelp")
```
You will be promped to paste your `API Key` in a separate password window.
## Example
Get a list of all the restaurants that have chicken wings in Charlottesville, VA:
``` r
yelp_search("chicken wings", "Charlottesville, VA")
```
## Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](https://github.com/SamanthaToet/yelpr/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
## License
MIT © Samantha Toet