Learn R Programming

nanonext (version 1.6.1)

write_stdout: 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)

Value

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

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.

Examples

Run this code
write_stdout("")

Run the code above in your browser using DataLab