powered by
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).
drive_extension(type = NULL)
Character. MIME type or file extension.
Character. File extension.
# NOT RUN { ## get the extension for mime type image/jpeg drive_extension("image/jpeg") ## it's vectorized drive_extension(c("text/plain", "pdf", "image/gif")) # }
Run the code above in your browser using DataLab