Status
lines of R code: 178, lines of test code: 97
Development version
0.2.0 - 2019-08-22 / 15:24:42
Description
A simple wrapper around the ‘ical.js’ library executing ‘Javascript’ code via ‘V8’ (the ‘Javascript’ engine driving the ‘Chrome’ browser and ‘Node.js’ and accessible via the ‘V8’ R package). This package enables users to parse ‘iCalendar’ files (‘.ics’, ‘.ifb’, ‘.iCal’, ‘.iFBf’) into lists and ‘data.frames’ to ultimately do statistics on events, meetings, schedules, birthdays, and the like.
License
MIT + file LICENSE
Peter Meissner [aut, cre], Philipp Kewisch
[cph] (Ical.js file is is licences under MPL. Source:
https://github.com/mozilla-comm/ical.js)
Contribution - AKA The-Think-Twice-Be-Nice-Rule
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms:
http://contributor-covenant.org/version/1/0/0/
There is one other package on CRAN that does calendar file parsing, too and which might be worth a look or two since is dedicated to cover a much broader range of use cases than ical - e.g. reading and writing ical files:
- Repo: https://github.com/ATFutures/calendar
- CRAN page: https://cran.r-project.org/web/packages/calendar/index.html
- Vignette: https://cran.r-project.org/web/packages/calendar/vignettes/ical-creating-calendars.html
Installation and start - stable version
install.packages("ical")
library(ical)
Installation and start - development version
if (!require("V8")) {
install.packages("V8")
}
devtools::install_github("petermeissner/ical")
library(ical)
laoding package
library(ical)
get path to a ical file
ical_file <- system.file("birthdays.ics", package = "ical")
parse file to data.frame
ical_parse_df(ical_file)
## uid summary start end
## 1 2014_BIRTHDAY_79d389868f96182e@google.com PErson #2's birthday 2014-12-10 01:00:00 2014-12-11 01:00:00
## 2 BIRTHDAY_79d389868f96182e@google.com PErson #2's birthday 2012-12-10 01:00:00 2012-12-11 01:00:00
## 3 BIRTHDAY_79d389868f96182e@google.com PErson #2's birthday 2013-12-10 01:00:00 2013-12-11 01:00:00
## 4 BIRTHDAY_79d389868f96182e@google.com PErson #2's birthday 2014-12-10 01:00:00 2014-12-11 01:00:00
## description location class priority transp dtstamp last_modified
## 1 <NA> Paris PUBLIC NA OPAQUE 2012-12-07 19:30:41 2012-12-07 19:30:41
## 2 Today is PErson #2's birthday! Los Angeles PUBLIC NA OPAQUE 2012-12-07 19:30:41 2012-12-07 19:30:41
## 3 Today is PErson #2's birthday! PUBLIC NA OPAQUE 2012-12-07 19:30:41 2012-12-07 19:30:41
## 4 Today is PErson #2's birthday! <NA> PUBLIC NA OPAQUE 2012-12-07 19:30:41 2012-12-07 19:30:41
## status
## 1 CONFIRMED
## 2 CONFIRMED
## 3 CONFIRMED
## 4 CONFIRMED