View source: R/getFileAsText.R
getFileAsText | R Documentation |
read a file as text, converting if necessary
getFileAsText(f)
f |
full path to file. |
The type of the file is determined using the linux file
utility. These type conversions are known:
Rich Text Format: the file is converted using unrtf --text
,
and the leading comments are stripped.
ASCII text: the file is read as-is.
a vector of lines in the file, after converting to text format
If the file f
is empty, this returns a vector of length 0.
John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.