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) ) )

kevinushey/Kmisc documentation built on May 20, 2019, 9:08 a.m.