read: Read a File

Description Usage Arguments Examples

View source: R/RcppExports.R View source: R/read.R

Description

These functions read a file into memory. We memory map the file for fast I/O. The file is read in as a character vector (length one for read, length n for readlines).

Usage

1
2
3

Arguments

file

Path to a file.

Examples

1
2
3
p <- file.path( R.home(), "NEWS" )
if (file.exists(p))
  stopifnot( identical( readLines(p), readlines(p) ) )

Example output



Kmisc documentation built on May 29, 2017, 1:43 p.m.

Related to read in Kmisc...