Read in a file, fast and raw

read_file_raw(fil, buffer_size = 16384L)

Arguments

fil

file to read in (no path expansion is performed)

buffer_size

larger buffer sizes may speed up reading of very large files. It can also hurt performance, and this function reads in the entire file into memory, so a large buffer size also means more (temporary) memory will be allocated.

Examples

read_file_raw(system.file("extdat", "example.hdr", package = "construe"))