Nothing
#' Delete media files links from transcript objects
#'
#' @param x Corpus object.
#' @param transcriptNames Vector of character strings; Names of the transcripts for which you want to search media files; leave empty if you want to search media for all transcripts in the corpus object.
#'
#' @return Corpus object.
#' @export
#'
#' @seealso \link{media_assign}, \link{media_getPathToExistingFile}
#'
#' @examples
#' library(act)
#'
#' examplecorpus <- act::media_delete(examplecorpus)
#'
media_delete <- function(x, transcriptNames=NULL) {
if (missing(x)) {stop("Corpus object in parameter 'x' is missing.") } else { if (!methods::is(x,"corpus") ) {stop("Parameter 'x' needs to be a corpus object.") } }
# if no filter is set, process all transcripts
if (is.null(transcriptNames)) {transcriptNames <- names(x@transcripts)}
#--- run through all transcripts in the corpus file
for (i in transcriptNames) {
x@transcripts[[i]]@media.path <- character()
}
return (x)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.