tests/testthat/helper-create_valid_subtitles.R

# test helper - create valid subtitles
make_valid_subtitles <- function(extra = NULL) {
  f <- system.file("extdata", "ex_webvtt.vtt", package = "subtools")
  read_subtitles(f, metadata = data.frame(test = "Test"))
}

Try the subtools package in your browser

Any scripts or data that you put into this service are public.

subtools documentation built on March 24, 2026, 5:07 p.m.