18 changed files with 192 additions and 36 deletions
@ -1,6 +1,6 @@ |
|||
# Generated by roxygen2: do not edit by hand |
|||
|
|||
export(get_mimetype) |
|||
export(incant) |
|||
import(purrr) |
|||
importFrom(Rcpp,sourceCpp) |
|||
useDynLib(filemagic) |
|||
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
@ -0,0 +1,5 @@ |
|||
#include <stdio.h> |
|||
|
|||
void main() { |
|||
|
|||
} |
@ -0,0 +1,4 @@ |
|||
<html> |
|||
<head></head> |
|||
<body></body> |
|||
</html> |
@ -0,0 +1 @@ |
|||
print("examle") |
@ -0,0 +1,5 @@ |
|||
{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470 |
|||
{\fonttbl} |
|||
{\colortbl;\red255\green255\blue255;} |
|||
\margl1440\margr1440\vieww12540\viewh14960\viewkind1 |
|||
} |
@ -1,12 +0,0 @@ |
|||
% Generated by roxygen2: do not edit by hand |
|||
% Please edit documentation in R/RcppExports.R |
|||
\name{get_mimetype} |
|||
\alias{get_mimetype} |
|||
\title{Return file info} |
|||
\usage{ |
|||
get_mimetype(path) |
|||
} |
|||
\description{ |
|||
Return file info |
|||
} |
|||
|
@ -0,0 +1,27 @@ |
|||
% Generated by roxygen2: do not edit by hand |
|||
% Please edit documentation in R/RcppExports.R |
|||
\name{incant} |
|||
\alias{incant} |
|||
\title{Return file info} |
|||
\usage{ |
|||
incant(path) |
|||
} |
|||
\arguments{ |
|||
\item{path}{character vector of files to use magic on} |
|||
} |
|||
\value{ |
|||
a \code{tibble} / \code{data.frame} of file magic attributes |
|||
} |
|||
\description{ |
|||
Return file info |
|||
} |
|||
\examples{ |
|||
library(magrittr) |
|||
library(dplyr) |
|||
|
|||
system.file("img", package="filemagic") \%>\% |
|||
list.files(full.names=TRUE) \%>\% |
|||
incant() \%>\% |
|||
glimpse() |
|||
} |
|||
|
Loading…
Reference in new issue