read_lines: Function to wrap 'readLines' with different defaults.

View source: R/read_lines.R

read_linesR Documentation

Function to wrap readLines with different defaults.

Description

Function to wrap readLines with different defaults.

Usage

read_lines(
  connection,
  n = -1,
  collapse = FALSE,
  encoding = "UTF-8",
  skip_null = FALSE,
  warn = FALSE
)

Arguments

connection

File name, URL, or connection to load.

n

Number of lines to read. Default is all (-1).

collapse

Should the vector which is loaded be collapsed to a length of 1.

encoding

Coding of input. Defult is "UTF-8".

skip_null

Should nulls be skipped?

warn

Should readLines give warning? Default is FALSE.

Value

Character vector.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.