powered by
(Down)Load a text file (and extract it if it is in a zip file).
loadtext(file = file.choose(), dir = "~/", collapse = TRUE)
The path or URL of the text file.
The (temporary) directory, where the file is downloaded. The file is deleted at the end of this function.
Indicates whether or not lines of each documents should collapse together or not.
The text contained in the dowloaded file.
download.file, unzip
download.file
unzip
# NOT RUN { text = loadtext ("http://mattmahoney.net/dc/text8.zip") # }
Run the code above in your browser using DataLab