View source: R/textFileContents.R
textFileContents | R Documentation |
return the contents of a text file as a character scalar, or the empty string if the file doesn't exist.
textFileContents(f)
f |
full path to the file |
character scalar with the file contents, or empty if the file is empty or doesn't exist.
mainly for reading a file which is not known to exist, e.g. a file whose name is passed as a parameter to a sub-shell, but where there's no guarantee the subshell actually wrote to it.
Contents only up to the first embedded NUL are returned.
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.