ic_write: Write ics file

Description Usage Arguments Examples

View source: R/ic_read.R

Description

Write ics file

Usage

1

Arguments

ic

object of class ical

file

ics file to write

Examples

1
2
3
4
5
6
7
8
9
ic <- ical(ical_example)
ic_write(ic, file.path(tempdir(), "ic.ics"))
f <- system.file("extdata", "example.ics", package = "calendar")
identical(readLines(file.path(tempdir(), "ic.ics")), readLines(f))
f <- system.file("extdata", "england-and-wales.ics", package = "calendar")
ics_df <- ic_read(f)
ic_write(ics_df, file.path(tempdir(), "ic.ics"))
# test similarity between files with diff tool like meld - from shell:
# meld ic.ics inst/extdata/england-and-wales.ics

Example output

[1] FALSE

calendar documentation built on May 2, 2019, 10:17 a.m.