x3p_write: Write an x3p object to a file

Description Usage Arguments Examples

View source: R/write_x3p.R

Description

Write an x3p object to a file

Usage

1
2
3
x3p_write(x3p, file, size = 8, quiet = F)

write_x3p(x3p, file, size = 8, quiet = F)

Arguments

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

Examples

1
2
3
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"))

x3ptools documentation built on Nov. 27, 2021, 1:06 a.m.