Description Usage Arguments Value Examples
View source: R/guess-content-type.R
Uses an internal database of over 1,800 file extension-to-MIME mappings to
return one or more associated types for a given input path. If no match is
found, ???
is returned.
1 | guess_content_type(path, not_found = "???", custom_db = NULL)
|
path |
path to file |
not_found |
MIME type to use when the content cannot be guessed by file type. |
custom_db |
a single data frames each with two columns:
|
character vector
1 | guess_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.