This function saves the State of the Union Addresses to disk, with one address in each file. Useful for testing and demonstrating text analysis functions that read from files.
sotu_dir(dir = tempfile())
an optional directory of where the files should be saved. Otherwise, a temporary location is used. Will be created if it does not exist. Note that these temporary files are erased (eventually) after exiting R.
a character vector with complete paths to the texts
Taylor B. Arnold, email@example.com
fp <- sotu_dir() txt <- readLines(fp) txt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.