x3p_write | R Documentation |
Write an x3p object to a file
x3p_write(x3p, file, size = 8, quiet = F, create_dir = T)
write_x3p(x3p, file, size = 8, quiet = F)
x3p |
x3p object |
file |
path to where the file should be written |
size |
integer. The number of bytes per element in the surface matrix used for creating the binary file. Use size = 4 for 32 bit IEEE 754 floating point numbers and size = 8 for 64 bit IEEE 754 floating point number (default). |
quiet |
suppress messages |
create_dir |
boolean. create directory for saving file, if necessary. Posts a message in case a directory is created. |
logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
# write a copy of the file into a temporary file
x3p_write(logo, file = tempfile(fileext="x3p"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.