stri_write_lines {stringi} | R Documentation

## [DRAFT API] Write Text Lines to a Text File

### Description

Writes a text file such that each element of a given character vector becomes a separate text line.

[THIS IS AN EXPERIMENTAL FUNCTION]

### Usage

    stri_write_lines(str, fname, encoding = "UTF-8",
      sep = ifelse(.Platform$OS.type == "windows", "\r\n", "\n"))

### Arguments

`str` | character vector
`fname` | file name
`encoding` | output encoding, `NULL` or `""` for the current default one
`sep` | newline separator

### Details

It is a substitute for the R `writeLines` function, with the ability to re-encode output without any strange function calls.

Note that we suggest using the UTF-8 encoding for all text files: thus, it is the default one for the output.

### Value

This function does not return anything interesting

### See Also

Other files: `stri_read_lines`, `stri_read_raw`

[Package stringi version 1.1.1 Index]