View source: R/read_write_option.R
read_write_option | R Documentation |
Define the functions that read()
or write() must call to
import or export data for the different types (formats).
read_write_option(new_type)
new_type |
A data.frame with four columns: |
The data.frame with all known formats is returned invisibly. The same
data.frame is also saved in the read_write`` option, and can be retrieved directly with
getOption("read_write")'.
Philippe Grosjean phgrosjean@sciviews.org
read()
, getOption()
# The default options
(read_write_option())
# To add a new type:
tail(read_write_option(data.frame(type = "png", read_fun = "png::readPNG",
read_header = NA, write_fun = "png::writePNG", comment = "PNG image")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.