Extract attributes from ical text
ic_attributes_vec(
x = NULL,
ic_attributes = c(BEGIN = "VCALENDAR", PRODID = "ATFutures/calendar", VERSION = "2.0",
CALSCALE = "GREGORIAN", METHOD = "PUBLISH")
)
ic_attributes_vec() # default attributes (can be changed)
#> BEGIN PRODID VERSION
#> "VCALENDAR" "ATFutures/calendar" "2.0"
#> CALSCALE METHOD
#> "GREGORIAN" "PUBLISH"
ic_attributes_vec(ical_example)
#> BEGIN
#> "VCALENDAR"
#> PRODID
#> "-//Google Inc//Google Calendar 70.9054//EN"
#> VERSION
#> "2.0"
#> CALSCALE
#> "GREGORIAN"
#> METHOD
#> "PUBLISH"
#> X-WR-CALNAME
#> "atf-test"
#> X-WR-TIMEZONE
#> "Europe/London"