⚠️There's a newer version (0.12) of this package. Take me there.

mime

This is an R package for mapping filename extensions to MIME types, based on the data derived from /etc/mime.types.

# installation
install.packages('mime')

library(mime)
guess_type(c('a/b/c.html', 'd.pdf', 'e.odt', 'foo.docx', 'tex'))
# [1] "text/html"                                                              
# [2] "application/pdf"                                                        
# [3] "application/vnd.oasis.opendocument.text"                                
# [4] "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
# [5] "text/x-tex"

Copy Link

Version

Down Chevron

Install

install.packages('mime')

Monthly Downloads

668,988

Version

0.10

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 13th, 2021

Functions in mime (0.10)