
Suggest known file formats
suggest_formats.Rd
This function returns a selection of suggested file formats that can be used with out_file
of animate_frames
on your system.
Usage
suggest_formats(
suggested = c("gif", "mov", "mp4", "flv", "avi", "mpeg", "3gp", "ogg")
)
Value
A subset of suggested
, containing only those file formats which are known by the renderers on the running system.
Examples
# find out which formats are available
suggest_formats()
#> [1] "gif" "mov" "mp4" "flv" "avi" "mpeg" "3gp" "ogg"
# check for a particular format not listed in "suggested" that you want to use, e.g. m4v
suggest_formats("m4v")
#> [1] "m4v"
# if "m4v" is returned, you can use this format with animate_frames