x3p_write: Write an x3p object to a file

View source: R/write_x3p.R

x3p_writeR Documentation

Write an x3p object to a file

Description

Write an x3p object to a file

Usage

x3p_write(x3p, file, size = 8, quiet = F, create_dir = T)

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

create_dir

boolean. create directory for saving file, if necessary. Posts a message in case a directory is created.

Examples

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 May 29, 2024, 10:33 a.m.