inst/doc/ical-creating-calendars.R

## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## -----------------------------------------------------------------------------
library(calendar)

## -----------------------------------------------------------------------------
# key:value pairs in an ical example:
ic_list(ical_example)[[1]]

## -----------------------------------------------------------------------------
library(calendar)
s = as.POSIXct("2019-01-12")
e = s + 60^2 * 24 *5
event = ic_event(start = s, end = e , summary = "Research trip")
event
class(event)
ic_character(event)

Try the calendar package in your browser

Any scripts or data that you put into this service are public.

calendar documentation built on May 29, 2024, 2:34 a.m.