Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrie/gcalendr
R package to read events from google calendar
https://github.com/andrie/gcalendr
Last synced: about 2 months ago
JSON representation
R package to read events from google calendar
- Host: GitHub
- URL: https://github.com/andrie/gcalendr
- Owner: andrie
- License: mit
- Created: 2017-12-08T15:27:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T10:13:02.000Z (about 3 years ago)
- Last Synced: 2024-08-13T07:11:54.368Z (4 months ago)
- Language: R
- Homepage: https://andrie.github.io/gcalendr/
- Size: 1.52 MB
- Stars: 56
- Watchers: 2
- Forks: 17
- Open Issues: 12
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - andrie/gcalendr - R package to read events from google calendar (R)
README
---
output: github_document
always_allow_html: yes
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
htmltools::tagList(rmarkdown::html_dependency_font_awesome())
```# gcalendr
[![R build status](https://github.com/andrie/gcalendr/workflows/R-CMD-check/badge.svg)](https://github.com/andrie/gcalendr/actions)
[![Travis build status](https://travis-ci.org/andrie/gcalendr.svg?branch=master)](https://travis-ci.org/andrie/gcalendr)
[![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/gcalendr)](https://cran.r-project.org/package=gcalendr)
[![Codecov test coverage](https://codecov.io/gh/andrie/gcalendr/branch/master/graph/badge.svg)](https://codecov.io/gh/andrie/gcalendr?branch=master)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
```