test.R

library(rlo)

rlo_new("test.odt", overwrite = TRUE, sleep_time = 2)

rlo_heading("Yet another example heading", 1)

table_data = data.frame(
  City = c("München", "Berlin"),
  "Elevation\n[m]" = c(520, 34),
  check.names = FALSE)

rlo_table(table_data, "Two major cities in Germany")

rlo_dispatch(".uno:Save")
rlo_pdf()
rlo_pdf("test2.pdf")
unlink("test2.pdf")

rlo_quit()

rlo_start("test.odt")
browseURL("test.pdf")
jranke/rlo documentation built on May 19, 2019, 11:52 p.m.