| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/utils.R |
| 3 |
\name{write_stdout} |
| 4 |
\alias{write_stdout} |
| 5 |
\title{Write to Stdout} |
| 6 |
\usage{ |
| 7 |
write_stdout(x) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{character string.} |
| 11 |
} |
| 12 |
\value{ |
| 13 |
Invisible NULL. As a side effect, \code{x} is output to \code{stdout}. |
| 14 |
} |
| 15 |
\description{ |
| 16 |
Performs a non-buffered write to \code{stdout} using the C function \code{writev()} or |
| 17 |
equivalent. Avoids interleaved output when writing concurrently from multiple |
| 18 |
processes. |
| 19 |
} |
| 20 |
\details{ |
| 21 |
This function writes to the C-level \code{stdout} of the process and hence cannot |
| 22 |
be re-directed by \code{\link[=sink]{sink()}}. |
| 23 |
|
| 24 |
A newline character is automatically appended to \code{x}, hence there is no need |
| 25 |
to include this within the input string. |
| 26 |
} |
| 27 |
\examples{ |
| 28 |
write_stdout("") |
| 29 |
|
| 30 |
} |