mimemap | R Documentation |
The data mimemap
is a named character vector that stores the filename
extensions and the corresponding MIME types, e.g. c(html = 'text/html', pdf = 'application/pdf', ...)
. The character vector mime:::mimeextra
stores
some additional types that we know, such as Markdown files (.md
), or R
scripts (.R
).
The file /etc/mime.types
on Debian.
str(as.list(mimemap))
mimemap["pdf"]
mimemap[c("html", "js", "css")]
# additional MIME types (not exported)
mime:::mimeextra
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.