File tree 2 files changed +13
-33
lines changed
2 files changed +13
-33
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,13 @@ output:
10
10
knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE, comment = "")
11
11
```
12
12
13
- ``` {r load extra packages}
14
- library(DT)
15
- ```
16
-
17
-
18
- # yelpr
19
13
20
14
An R library for the [ Yelp Fusion API] ( https://www.yelp.com/developers/documentation/v3/get_started )
21
15
22
16
## Installation
23
17
18
+ ` devtools::install_github("OmaymaS/yelpr") `
19
+
24
20
## API Authentication
25
21
26
22
From [ yelp authentication guide] ( https://www.yelp.com/developers/documentation/v3/authentication ) :
@@ -71,13 +67,14 @@ business_ny <- business_search(api_key = key,
71
67
limit = 5)
72
68
```
73
69
74
- The function returns a list, so we could see the details of the businesses as follows :
70
+ The function returns a list, so we can extract the details of the businesses ` business_ny$businesses ` :
75
71
76
- ``` {r print businesses details }
72
+ ``` {r, echo = F }
77
73
business_ny$businesses
78
74
```
79
75
80
76
77
+
81
78
### Events Endpoint
82
79
83
80
The available functions are:
@@ -96,8 +93,6 @@ event <- event_search_featured(api_key = key,
96
93
longitude = "-74.01385", latitude = "40.70387")
97
94
```
98
95
99
- And the event name would be:
100
- ``` {r prnt event name}
101
- event$name
102
- ```
96
+ And the event name ` event$name ` would be:
97
+ ** ` r event$name ` **
103
98
Original file line number Diff line number Diff line change 3
3
4
4
5
5
6
- ``` r
7
- library(DT )
8
- ```
9
-
10
-
11
- # yelpr
12
-
13
6
An R library for the [ Yelp Fusion API] ( https://www.yelp.com/developers/documentation/v3/get_started )
14
7
15
8
## Installation
16
9
10
+ ` devtools::install_github("OmaymaS/yelpr") `
11
+
17
12
## API Authentication
18
13
19
14
From [ yelp authentication guide] ( https://www.yelp.com/developers/documentation/v3/authentication ) :
@@ -67,13 +62,9 @@ business_ny <- business_search(api_key = key,
67
62
limit = 5 )
68
63
```
69
64
70
- The function returns a list, so we could see the details of the businesses as follows :
65
+ The function returns a list, so we can extract the details of the businesses ` business_ny$businesses ` :
71
66
72
67
73
- ``` r
74
- business_ny $ businesses
75
- ```
76
-
77
68
```
78
69
id alias
79
70
1 k8GFfCXO2FIIJIo0ICYSRA bao-bao-cafe-new-york-3
@@ -150,6 +141,7 @@ business_ny$businesses
150
141
```
151
142
152
143
144
+
153
145
### Events Endpoint
154
146
155
147
The available functions are:
@@ -169,13 +161,6 @@ event <- event_search_featured(api_key = key,
169
161
longitude = " -74.01385" , latitude = " 40.70387" )
170
162
```
171
163
172
- And the event name would be:
173
-
174
- ``` r
175
- event $ name
176
- ```
177
-
178
- ```
179
- [1] "52 Things To Do in 2018"
180
- ```
164
+ And the event name ` event$name ` would be:
165
+ ** 52 Things To Do in 2018**
181
166
You can’t perform that action at this time.
0 commit comments