petermeissner / ical

iCalendar parser for R
Other
18 stars 6 forks source link

Dealing with recurring events? #9

Open giabaio opened 4 years ago

giabaio commented 4 years ago

Hi all, This may not be entirely relevant. But is there a way of importing the ics calendar (say, from a URL) and then manipulate it in R while dealing with recurring events? Currently, I am able to parse my work calendar (hosted under Outlook365 at my institution). But recurring events are only seen once (the first time they are set up) and not as a series.

I understand that the field RRULE specifies that an entry should be repeated, but can this be processed with ical to duplicate the recurring event (say every week, or simply on any occurrence)? Thanks Gianluca

petermeissner commented 4 years ago

@giabaio : I just pushed an update to the package - could you have look (remotes::install_github("petermeissner/ical")) if this works for you?

This will not expand the series entry into multiple lines but provide the rrule fields to do so yourself.

giabaio commented 4 years ago

Thank you! Sounds very promising --- appreciate the work. I'll check out and report back! Gianluca

On Tue, 8 Sep 2020 at 12:35, Peter Meissner notifications@github.com wrote:

@giabaio https://github.com/giabaio : I just pushed an update to the package - could you have look ( remotes::install_github("petermeissner/ical")) if this works for you?

This will not expand the series entry into multiple lines but provide the rrule fields to do so yourself.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/petermeissner/ical/issues/9#issuecomment-688809728, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCRVSLL55NFGP3JFX3LM43SEYJI7ANCNFSM4ONLL5GA .

--

Gianluca Baio

Professor of Statistics & Health Economics Department of Statistical Science University College London 1-19 Torrington Place, London WC1E 6BT, UK Telephone +44(0)20 7679 1248 (internal: 41248) Fax +44 (0)20 7383 4703 Website: http://www.homepages.ucl.ac.uk/~ucakgba http://www.homepages.ucl.ac.uk/~ucakgba/ Blog: http:www.statistica.it/gianluca/blog

https://twitter.com/gianlubaio https://www.linkedin.com/in/gianluca-baio-b893879/ https://github.com/giabaio https://scholar.google.co.uk/citations?user=ro0QvGsAAAAJ&hl=en https://www.researchgate.net/profile/Gianluca_Baio https://orcid.org/0000-0003-4314-2570

DUE TO THE COVID-19 EMERGENCY, I WILL PROBABLY HAVE ERRATIC WORKING HOURS IN THE NEXT FEW DAYS/WEEKS/MONTHS/YEARS. I MAY BE SLOWER IN REPLYING TO EMAILS OR SEND THEM AT UNGODLY HOURS. PLEASE BEAR WITH ME.

giabaio commented 4 years ago

Thank @petermeissner. This is very helpful. I have to say however that being able to manage the rrule is a bit outside of the realm of things I know how to do... ;-) Would you be able to point me in the right direction (of course, I don't mean "write the function for me, please", but something like "the rrule field needs to be manipulated like...")? Thanks again!

petermeissner commented 4 years ago

Glad it helps.

I think this interactive tool might be helpful, for a start: https://jakubroztocil.github.io/rrule/

The definition of the standard might also help (well, the definition is a bit cryptic but the examples might be instructive): https://www.kanzaki.com/docs/ical/rrule.html

Gianluca Baio notifications@github.com schrieb am Di., 6. Okt. 2020, 15:02:

Thank @petermeissner https://github.com/petermeissner. This is very helpful. I have to say however that being able to manage the rrule is a bit outside of the realm of things I know how to do... ;-) Would you be able to point me in the right direction (of course, I don't mean "write the function for me, please", but something like "the rrule field needs to be manipulated like...")? Thanks again!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/petermeissner/ical/issues/9#issuecomment-704252977, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHFJA7LFNPRDOSNSN2N4G3SJMINLANCNFSM4ONLL5GA .

giabaio commented 4 years ago

Thank you very much! This is very helpful. I'll do my bit of reading/research and will be back soon! :-)

yinshiyi commented 1 year ago

RRULE is needed, I also ran into similar issue, working on it will report back

samuelreuther commented 2 weeks ago

Hi there, did anybody solve this yet? Would be awesome :)