-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathREADME.Rmd
69 lines (48 loc) · 1.97 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
57
58
59
60
61
62
63
64
65
66
67
68
69
---
output: github_document
always_allow_html: yes
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
htmltools::tagList(rmarkdown::html_dependency_font_awesome())
```
# gcalendr <img src='man/figures/logo.png' align="right" height="139" />
<!-- badges: start -->
[](https://github.com/andrie/gcalendr/actions)
[](https://travis-ci.org/andrie/gcalendr)
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://cran.r-project.org/package=gcalendr)
[](https://codecov.io/gh/andrie/gcalendr?branch=master)
<!-- badges: end -->
This package enables you to read events from google calendar.
## Installation
The package is not yet on CRAN.
You can install the development version of `gcalendr` from github using:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("andrie/gcalendr")
```
## Example
Use this example to authenticate, list available calendars and view events:
```{r eval=FALSE}
library(gcalendr)
## Set up google oauth permissions
## This will prompt you to specify an account
calendar_auth()
```
```{r eval=FALSE}
## To specify a specific account, provide your account id, typically an email address
calendar_auth("[email protected]")
## Retrieve tibble of available calenders
calendar_ids <- calendar_list()
calendar_ids
## Retrieve tibble of events from a specific calendar
my_cal_id <- "[email protected]"
events <- calendar_events(my_cal_id, days_in_past = 90, days_in_future = 90)
events
```