Skip to main content

interp_write_lines

Function interp_write_lines 

Source
fn interp_write_lines(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Write text lines to a file path, connection, or stdout.

If con is a character string, writes to that file path. If con is an integer with class “connection”, writes to the connection’s stored file path, stdout for connection 1, or TCP socket. If con is omitted, writes to stdout.

@param text character vector of lines to write @param con character scalar or connection integer: destination @param sep character scalar: line separator (default “\n”) @return NULL (invisibly)