.readText | R Documentation |
Reads the content of a local or an online text file.
.readText(con, ..., maxAge=getOption("R.rsp::downloadIfOlderThan", -Inf))
con |
A |
... |
Not used. |
maxAge |
A |
Returns a character
string.
When reading online URLs, it may take time a significant time to
read its content. If the content is changing rarely, it is possible
to cache the content locally. If a cached version is found, then it
is read instead.
It is possible to control how often a file should be recached. If the
cache is older than argument maxAge
(in seconds), then the file
is redownloaded and recached.
All occurrences of \r\n
and \r
are replaced with
\n
such that all lines are ending in \n
regardless
of encoding.
Henrik Bengtsson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.