These functions load one or more source(s) from a file or
a string and store it in memory for further processing.
Note that you'll probably want to clean the sources
first, using one of the clean_sources()
functions,
and you'll probably want to add utterance identifiers
to each utterance using one of the prepending_uids()
functions.
load_source(input, encoding = "UTF-8", silent = FALSE) load_sources( input, encoding = "UTF-8", filenameRegex = ".*", ignoreRegex = NULL, recursive = TRUE, full.names = FALSE, silent = FALSE )
input | The filename or contents of the source
for |
---|---|
encoding | The encoding of the file(s). |
silent | Whether to be chatty or quiet. |
filenameRegex | A regular expression to match against located files; only files matching this regular expression are processed. |
ignoreRegex | Regular expression indicating which files to ignore. |
recursive | Whether to search all subdirectories ( |
full.names | Whether to store source names as filenames only or whether to include paths. |
Invisibly, an R character vector of
classes rock_source
and character
.