-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrjsonio.Rmd
47 lines (33 loc) · 904 Bytes
/
rjsonio.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
---
title: "Demo of RJsonIo"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
---
```{r setup, include=FALSE}
library(flexdashboard)
library(rStrava)
```
Column {data-width=650}
-----------------------------------------------------------------------
### Chart A
```{r}
#get data on segment ID
#strava app keys
strava_client_id = "13234";
strava_client_secret = "f7ff13f2589f3afe2eec509782e5dcdc3bbf5e0d";s
strava_app_name = "Bellcurver";
# create the authentication token
strava_token <- httr::config(token = strava_oauth(strava_app_name, strava_client_id, strava_client_secret))
myinfo <- rStrava.get_athlete(strava_token, id = '2829713')
head(myinfo)
```
Column {data-width=350}
-----------------------------------------------------------------------
### Chart B
```{r}
```
### Chart C
```{r}
```