mime_to_ext | R Documentation |
Determines a suitable file extension from a MIME type, based i.a. on mime::mimemap
and
mime:::mimeextra
. In case of multiple matches, the first one is returned and a warning is printed (unless quiet = TRUE
).
mime_to_ext(mime_type, quiet = FALSE)
mime_type |
MIME type to determine the file extension for. A character scalar. |
quiet |
Whether or not to suppress printing status output from internal processing. |
A character scalar.
pal::mime_to_ext("application/json")
pal::mime_to_ext("audio/mpeg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.