Write an x3p object to a file
x3p_write(x3p, file, size = 8, quiet = F)write_x3p(x3p, file, size = 8, quiet = F)
x3p object
path to where the file should be written
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).
suppress messages
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"))
Run the code above in your browser using DataLab