---
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.

The following functions are implemented:

- `incant` : returns the mimetype of the files in the input vector (as a data frame)

The following data sets are included:

- (eventually will be an internal mime types db)

### 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}
library(filemagic)
library(magrittr)
library(dplyr)

system.file("img", package="filemagic") %>% 
  list.files(full.names=TRUE) %>% 
  incant() %>% 
  glimpse()

# current verison
packageVersion("filemagic")

```

### Test Results

```{r message=FALSE}
library(filemagic)
library(testthat)

date()

test_dir("tests/")
```

