| gcal | R Documentation |
Create a dataframe that can be imported into a Google Calendar in CSV format.
gcal(
subject = "New Event",
start_date_day_number,
start_date_year,
start_date_offset = c("none", "previous_business_day", "next_business_day"),
verbose = TRUE
)
The returned dataframe has the following structure:
| Field | Definition |
| Subject | (Required) The name of the event. Example: 'Final exam' |
| Start Date | (Required) The start date in 'm/d/y' format. |
| Start Time | Time the event begins. Example: 10:00 AM. |
| End Date | The date the event ends. |
| End Time | Time the event ends. Example: 1:00 PM |
| All Day Event | Boolean indicating whether event occurs all day. Example: True |
| Description | Notes about the event. |
| Location | Location of event. Example: "Columbia, Schermerhorn 614" |
| Private | Boolean indicating whether event is private or not. Example: False |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.