Description Usage Arguments Value Examples
View source: R/drive_mime_type.R
This is a helper to determinine which extension should be used for a file. Two types of input are acceptable:
MIME types accepted by Google Drive.
File extensions, such as "pdf", "csv", etc. (these are simply passed through).
1 |
type |
Character. MIME type or file extension. |
Character. File extension.
1 2 3 4 5 | ## get the extension for mime type image/jpeg
drive_extension("image/jpeg")
## it's vectorized
drive_extension(c("text/plain", "pdf", "image/gif"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.