I have a dataframe with the beginning and end times, and title, of different events in columns :
2024-03-11 10:00:00 2024-03-11 11:00:00 Event1
2024-03-13 10:00:00 2024-03-13 11:00:00 Event2
2024-03-15 10:00:00 2024-03-15 11:00:00 Event3
I need to convert this list of events into a single .ics file with various events that I can import into my calendar.
How can I use the ic_write function of calendar package to do that ? The help says ic_write requires an object of class ical, but I didn't find how to create an ical object from a dataframe. Does anyone know how to do it ?
Thank you for your help !
This approach works for me:
It writes
.icsfile which can be imported into calendar:However, when trying to read it back using {calendar} it errors out:
which is inline with github issue. But it can be parsed with {ical}:
Created on 2024-03-17 with reprex v2.1.0