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.

51 lines
928 B

8 years ago
---
output: rmarkdown::github_document
---
8 years ago
`wand` : Retrieve 'Magic' Attributes from Files and Directories
8 years ago
The `libmagic` library must be installed and available to use this. The package should also be pretty straightforward to get working on Windows. Assistance to do that is welcome.
8 years ago
The following functions are implemented:
8 years ago
- `incant` : returns the "magic" metadata of the files in the input vector (as a data frame)
8 years ago
8 years ago
### Installation
```{r eval=FALSE}
8 years ago
devtools::install_github("hrbrmstr/wand")
8 years ago
```
```{r echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}
options(width=120)
```
### Usage
```{r message=FALSE}
8 years ago
library(wand)
library(magrittr)
library(dplyr)
8 years ago
system.file("img", package="wand") %>%
list.files(full.names=TRUE) %>%
incant() %>%
glimpse()
8 years ago
# current verison
8 years ago
packageVersion("wand")
8 years ago
```
### Test Results
8 years ago
```{r message=FALSE}
8 years ago
library(wand)
8 years ago
library(testthat)
date()
test_dir("tests/")
```