Description Usage Arguments Details Value Examples
View source: R/get-content-type.R
There are a limited number of header "magic" bytes checked directly by
this function but cover quite a bit of ground. After that, guess_content_type()
is called which uses file extension-to-MIME mappings.
1 | get_content_type(path, guess = TRUE, ...)
|
path |
path to a file |
guess |
if |
... |
passed on to |
File an issue or PR if more magic-byte-level
comparisons are required/desired. If no match is found, ???
is returned
(see guess_content_type()
for how to override this behaviour).
character vector
1 | get_content_type(system.file("extdat", "pass-through", "test.pdf", package="wand"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.