write_stdout: Write to Stdout

View source: R/utils.R

write_stdoutR Documentation

Write to Stdout

Description

Performs a non-buffered write to stdout using the C function writev() or equivalent. Avoids interleaved output when writing concurrently from multiple processes.

Usage

write_stdout(x)

Arguments

x

character string.

Details

This function writes to the C-level stdout of the process and hence cannot be re-directed by sink().

A newline character is automatically appended to x, hence there is no need to include this within the input string.

Value

Invisible NULL. As a side effect, x is output to stdout.

Examples

write_stdout("")


shikokuchuo/nanonext documentation built on June 12, 2025, 11:52 p.m.