Export an EtherCalc "room" to a local file

ec_export(room, type = c("csv", "json", "html", "md", "xlsx"), path,
  overwrite = TRUE, ec_host = ethercalc_host())

Arguments

room

name of an EtherCalc "room"

type

EtherCalc supports exporting as CSV, JSON, HTML, markdown, or Excel. Use "csv", "json", "html", "md", or "xlsx" (respectively).

path

place to save the file. Value will be path.expand()ed but you are responsible for naming the file (including extension).

overwrite

overwrite path if a file exists? Default: TRUE.

ec_host

See ethercalc_host()

Value

a raw vector containing the contents of what was written to path.

See also

Other EthercCalc importers/exporters: ec_append, ec_edit, ec_read

Examples

# NOT RUN {
ec_edit(mtcars, "mtcars")
ec_export("mtcars", "csv", "mtcars.csv")
ec_export("mtcars", "json", "mtcars.json")
ec_export("mtcars", "html", "mtcars.html")
ec_export("mtcars", "md", "mtcars.md")
ec_export("mtcars", "xlsx", "mtcars.xlsx")
# }