video_file

0th

Percentile

Wrap a video file for easy handling

This function is equivalent to gif_file() but works for arbitrary video file formats. There are some caveats involved though, most notably it doesn't currently supports splitting so you can't easily use this output together with split_animation(). Graceful printing is contingent on the file format. Only mp4, webm, and ogg is supported by the HTML format and can thus be shown in the RStudio viewer and inside HTML documents created with knitr. Other formats will be opened in their default OS-specific viewer.

Keywords
internal
Usage
video_file(file)

# S3 method for video_file print(x, width = NULL, ...)

knit_print.video_file(x, options, ...)

Arguments
file

A video file

x

A video_file object

width

The width the output should be scaled to

...

Arguments passed on

Value

video_file returns a video_file object which is a shallow wrapper around the file path text string.

Aliases
  • video_file
  • print.video_file
  • knit_print.video_file
Documentation reproduced from package gganimate, version 1.0.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.