Description Usage Arguments Details Value Examples
Imports a delimited file into Google Calendar, creating one event for every row in a table. This method operates on the Google Calendar API Events resource.
1 | gc_event_import(x, events, sendNotifications = FALSE, verbose = TRUE)
|
x |
|
events |
|
sendNotifications |
Logical indicating whether to send notifications about the event. |
verbose |
Logical indicating whether to print informative messages. |
In order for gc_event_import
to operate, it must be supplied
with a source that complies with the following naming convention for
column headers:
Each column should represent a single property, with headers
sharing the same name as their event
object counterpart.
For example, the title header would be summary
and the
location header would be location
.
The path of a nested property is delimited with a .
(period). For example, the start time header would be
start.dateTime
and the end time zone header would be
end.timeZone
.
When reading event import tables R, be careful that your input method
preserves the header names and does not improperly coerce column
types. For example, with read.csv
, you may need to set
check.names = FALSE
and with readr
's read_csv
,
you may need to set col_types =
cols(.default = "c")
.
Note that it may not be possible to represent all properties of an
event within the scalar confines of a single CSV-type row (the
attendees
sub-structure is an example of one such group of
arbitrary-length properties). However, careful preprocessing of an
input table may enable you to overcome this restriction. See the
project
README on
GitHub for some examples of this.
Character vector of the newly created event IDs.
1 2 3 4 5 6 7 | ## Not run:
tbl <- read.csv("sunsets.csv", stringsAsFactors = FALSE)
gc_summary("Sunsets") %>%
gc_event_import(tbl)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.