Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
R/ | H | 23-Jun-2021 | - | 911 | 779 | |
inst/ | H | 14-Apr-2021 | - | 10 | 8 | |
man/ | H | 12-Feb-2021 | - | 111 | 101 | |
src/ | H | 28-Sep-2021 | - | 47 | 39 | |
tests/ | H | 11-Oct-2018 | - | 4 | 3 | |
DESCRIPTION | H A D | 28-Sep-2021 | 864 | 26 | 25 | |
MD5 | H A D | 28-Sep-2021 | 613 | 14 | 13 | |
NAMESPACE | H A D | 14-Apr-2021 | 157 | 8 | 6 | |
README.md | H A D | 12-Feb-2021 | 926 | 24 | 19 |
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