Bob Rudis
7 years ago
No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
8 changed files with
14 additions and
13 deletions
-
.Rbuildignore
-
.travis.yml
-
DESCRIPTION
-
NAMESPACE
-
R/wand-package.R
-
R/zzz.r
-
man/magic_wand_file.Rd
-
src/Makevars
|
|
@ -1,7 +1,7 @@ |
|
|
|
^.*\.Rproj$ |
|
|
|
^\.Rproj\.user$ |
|
|
|
^\.travis\.yml$ |
|
|
|
^README\.*md$ |
|
|
|
^README\.Rmd$ |
|
|
|
^README\.*html$ |
|
|
|
^NOTES\.*Rmd$ |
|
|
|
^NOTES\.*html$ |
|
|
|
|
|
@ -3,9 +3,7 @@ warnings_are_errors: true |
|
|
|
sudo: required |
|
|
|
|
|
|
|
apt_packages: |
|
|
|
- binutils |
|
|
|
- libproj-dev |
|
|
|
- gdal-bin |
|
|
|
- libmagic-dev |
|
|
|
|
|
|
|
env: |
|
|
|
global: |
|
|
|
|
|
@ -16,12 +16,13 @@ Suggests: |
|
|
|
testthat, |
|
|
|
tibble, |
|
|
|
magrittr, |
|
|
|
dplyr, |
|
|
|
rappdirs |
|
|
|
dplyr |
|
|
|
Depends: |
|
|
|
R (>= 3.0.0) |
|
|
|
Imports: |
|
|
|
purrr, |
|
|
|
Rcpp |
|
|
|
Rcpp, |
|
|
|
rappdirs, |
|
|
|
utils |
|
|
|
LinkingTo: Rcpp |
|
|
|
RoxygenNote: 5.0.1 |
|
|
|
|
|
@ -3,6 +3,7 @@ |
|
|
|
export(incant) |
|
|
|
export(magic_wand_file) |
|
|
|
import(purrr) |
|
|
|
import(rappdirs) |
|
|
|
importFrom(Rcpp,sourceCpp) |
|
|
|
importFrom(rappdirs,user_cache_dir) |
|
|
|
importFrom(utils,unzip) |
|
|
|
useDynLib(wand) |
|
|
|
|
|
@ -4,7 +4,8 @@ |
|
|
|
#' @docType package |
|
|
|
#' @author Bob Rudis (@@hrbrmstr) |
|
|
|
#' @import purrr |
|
|
|
#' @import rappdirs |
|
|
|
#' @importFrom rappdirs user_cache_dir |
|
|
|
#' @useDynLib wand |
|
|
|
#' @importFrom Rcpp sourceCpp |
|
|
|
#' @importFrom utils unzip |
|
|
|
NULL |
|
|
|
|
|
@ -12,8 +12,8 @@ |
|
|
|
#' database is used. |
|
|
|
#' @export |
|
|
|
#' @examples |
|
|
|
# ' library(magrittr) |
|
|
|
# ' library(dplyr) |
|
|
|
#' library(magrittr) |
|
|
|
#' library(dplyr) |
|
|
|
#' |
|
|
|
#' system.file("img", package="filemagic") %>% |
|
|
|
#' list.files(full.names=TRUE) %>% |
|
|
|
|
|
@ -20,6 +20,8 @@ perform the decompression unless \code{force} is \code{TRUE} or the |
|
|
|
cache directory has been cleared. |
|
|
|
} |
|
|
|
\examples{ |
|
|
|
library(magrittr) |
|
|
|
library(dplyr) |
|
|
|
|
|
|
|
system.file("img", package="filemagic") \%>\% |
|
|
|
list.files(full.names=TRUE) \%>\% |
|
|
|
|
|
@ -1,3 +1 @@ |
|
|
|
CPPFLAGS = |
|
|
|
CXXFLAGS = -std=gnu99 -Wall -Wextra -O2 -g -fstack-protector |
|
|
|
PKG_LIBS = -lmagic |