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")
)

Arguments

x

Lines read-in in from an iCal file

ic_attributes

Calendar attributes, e.g. as provided by ic_attributes_vec().

Examples

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"