项目作者: yihui

项目描述 :
Map filenames to MIME types
高级语言: R
项目地址: git://github.com/yihui/mime.git
创建时间: 2014-04-15T22:42:30Z
项目社区:https://github.com/yihui/mime

开源协议:

下载


mime

R-CMD-check
CRAN
release

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

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