You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
971 B

8 years ago
---
output: rmarkdown::github_document
---
`filemagic` : R interface to `libmagic`
So you do need to install `libmagic` to use this. This should also be pretty straightforward to get working on Windows. Assistance to do that is welcome.
8 years ago
The following functions are implemented:
- `incant` : returns the mimetype of the files in the input vector (as a data frame)
8 years ago
8 years ago
The following data sets are included:
8 years ago
- (eventually will be an internal mime types db)
8 years ago
### Installation
```{r eval=FALSE}
devtools::install_github("hrbrmstr/filemagic")
```
```{r echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}
options(width=120)
```
### Usage
```{r message=FALSE}
8 years ago
library(filemagic)
library(magrittr)
library(dplyr)
system.file("img", package="filemagic") %>%
list.files(full.names=TRUE) %>%
incant() %>%
glimpse()
8 years ago
# current verison
packageVersion("filemagic")
```
### Test Results
```{r}
library(filemagic)
library(testthat)
date()
test_dir("tests/")
```