• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

R/H23-Jun-2021-911779

inst/H14-Apr-2021-108

man/H12-Feb-2021-111101

src/H28-Sep-2021-4739

tests/H11-Oct-2018-43

DESCRIPTIONH A D28-Sep-2021864 2625

MD5H A D28-Sep-2021613 1413

NAMESPACEH A D14-Apr-2021157 86

README.mdH A D12-Feb-2021926 2419

README.md

1# mime
2
3<!-- badges: start -->
4[![R-CMD-check](https://github.com/yihui/mime/workflows/R-CMD-check/badge.svg)](https://github.com/yihui/mime/actions)
5[![CRAN release](https://www.r-pkg.org/badges/version/mime)](https://cran.r-project.org/package=mime)
6<!-- badges: end -->
7
8This is an R package for mapping filename extensions to [MIME
9types](https://en.wikipedia.org/wiki/Internet_media_type), based on the data
10[derived](R/mime.R) from `/etc/mime.types`.
11
12```r
13# installation
14install.packages('mime')
15
16library(mime)
17guess_type(c('a/b/c.html', 'd.pdf', 'e.odt', 'foo.docx', 'tex'))
18# [1] "text/html"
19# [2] "application/pdf"
20# [3] "application/vnd.oasis.opendocument.text"
21# [4] "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
22# [5] "text/x-tex"
23```
24