write_file_raw: Write data to a file

View source: R/write_file_raw.R

write_file_rawR Documentation

Write data to a file

Description

This function differs from write_lines() in that it writes the data in text directly, without any checking or adding any newlines.

Usage

write_file_raw(raw, path)

Arguments

raw

A raw vector with data to write.

path

A character string giving the file path to write to.

Examples

tf <- tempfile()

write_file_raw(as.raw(c(0x66, 0x6f, 0x6f, 0x0, 0x62, 0x61, 0x72)), tf)

unlink(tf)

brio documentation built on May 29, 2024, 6:41 a.m.