Title: | 'iCalendar' Parsing |
---|---|
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. |
Authors: | Peter Meissner [aut, cre], Philipp Kewisch [cph] (Ical.js file is is licences under MPL. Source: https://github.com/mozilla-comm/ical.js) |
Maintainer: | Peter Meissner <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.3.0 |
Built: | 2024-11-04 03:02:57 UTC |
Source: | https://github.com/petermeissner/ical |
ical_clean_ical_parsed
ical_clean_ical_parsed(ical_parsed)
ical_clean_ical_parsed(ical_parsed)
ical_parsed |
data provided by |
Parses iCalendar format from character vector or file and returns it as a list of columns.
Parses iCalendar format from character vector or file and returns it as data.frame.
Parses all calendar data - to various formats: list, list of data.frames, object.
Parses iCalendar format from character vector or file and returns ALL data found in the calendar as tree like list called jcal format. This function is low level and expects the programmer to figure out what belongs where and how to handle things.
Parses iCalendar format from character vector or file and returns it as a list of entries.
ical_parse(file = NULL, text = NULL, simplify = TRUE) ical_parse_df(file = NULL, text = NULL) ical_parse_full(file = NULL, text = NULL) ical_parse_jcal(file = NULL, text = NULL) ical_parse_list(file = NULL, text = NULL)
ical_parse(file = NULL, text = NULL, simplify = TRUE) ical_parse_df(file = NULL, text = NULL) ical_parse_full(file = NULL, text = NULL) ical_parse_jcal(file = NULL, text = NULL) ical_parse_list(file = NULL, text = NULL)
file |
path to file to be read in and parsed |
text |
text of ical file |
return_empty_rows |
whether or not to filter out calendar items for which all fields are empty (NA) |
# parse from character vector char_vec <- readLines(system.file("birthdays.ics", package = "ical")) ical_parse(text = char_vec) # parse from file ical_parse(file = system.file("birthdays.ics", package = "ical"))
# parse from character vector char_vec <- readLines(system.file("birthdays.ics", package = "ical")) ical_parse(text = char_vec) # parse from file ical_parse(file = system.file("birthdays.ics", package = "ical"))
Reads in text files or prepares character vectors.
Either file
or text
have to be specified.
ical_read_text(file = NULL, text = NULL, enc = "UTF-8")
ical_read_text(file = NULL, text = NULL, enc = "UTF-8")
file |
a file path or connection object. |
text |
a character vector. |
enc |
encoding of the file to be read in |
Function to get file paths to local test files included in the package.
ical_test_files(fname = NULL)
ical_test_files(fname = NULL)
fname |
either NULL which will list files, an integer which will select file paths by index or a string which will select files via regular expression |
returns one or more file paths
ical_test_files() ical_test_files(1) ical_test_files("mini")
ical_test_files() ical_test_files(1) ical_test_files("mini")