#' Get corpus texts \[deprecated\]
#'
#' Get the texts from a [readtext] object.
#'
#' This function is **deprecated**.
#'
#' Use [as.character.readtext()] to turn a readtext object into a simple named
#' character vector of documents.
#' @param x a [readtext] object
#' @param ... not used
#' @return a character vector of the texts in the corpus
#' @export
#' @keywords corpus internal
texts <- function(x, ...) {
UseMethod("texts")
}
#' @rdname texts
#' @export
texts.readtext <- function(x, ...) {
.Deprecated("Use as.character() instead")
as.character(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.