ec_export: Export an EtherCalc "room" to a local file

Description Usage Arguments Value See Also Examples

Description

Export an EtherCalc "room" to a local file

Usage

1
2
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

1
2
3
4
5
6
7
8
9
## 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")

## End(Not run)

hrbrmstr/ethercalc documentation built on June 16, 2019, 4:18 a.m.