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. File an issue or PR if more magic-byte-level
comparisons are required/desired. If no match is found, ???
is returned.
1 | get_content_type(path)
|
path |
path to a file |
Initial in-R header mapping logic borrowed from MimeTypes.java
from
servoy-client
character vector
1 | get_content_type(system.file("extdat", "test.pdf", package="simplemagic"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.