Learn R Programming

SRTtools (version 1.2.0)

srt.write: Srt Output

Description

Write the srt file to the system.

Usage

srt.write(srt, filename)

Arguments

srt

vector. The srt file read by srt.read.

filename

Either a character string naming a file or a connection open for writing.

See Also

srt.read

Examples

Run this code
# NOT RUN {
srt_path <- system.file("extdata", "movie.srt", package="SRTtools")
srt <- srt.read(srt_path, encoding = 'utf-8')

# Postpone subtitles 3 seconds later
srt <- srt.shift(srt, time_shifted = 3)

# Save and cover original "movie.srt" file
srt.write(srt, filename =  file.path(tempdir(), "movie.srt"))

# }

Run the code above in your browser using DataLab