
Create a uniform resource identifier source.
URISource(x, encoding = "", mode = "text")
A character vector of uniform resource identifiers (URIs.
A character string describing the current encoding. It is
passed to iconv
to convert the input to UTF-8.
An object inheriting from URISource
, SimpleSource
,
and Source
.
A uniform resource identifier source interprets each URI as a document.
Source
for basic information on the source infrastructure
employed by package tm.
# NOT RUN {
loremipsum <- system.file("texts", "loremipsum.txt", package = "tm")
ovid <- system.file("texts", "txt", "ovid_1.txt", package = "tm")
us <- URISource(sprintf("file://%s", c(loremipsum, ovid)))
inspect(VCorpus(us))
# }
Run the code above in your browser using DataLab