From e96ffec339bab3ab7832a643a067912c03c61794 Mon Sep 17 00:00:00 2001 From: Yuchen Wang Date: Tue, 21 Feb 2017 23:25:40 -0500 Subject: [PATCH 1/2] Pre-release --- .Rbuildignore | 2 ++ .travis.yml | 5 +++++ DESCRIPTION | 2 +- R/tidy_routine.R | 12 ------------ README.md | 5 +++++ cran-comments.md | 14 ++++++++++++++ 6 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 .travis.yml delete mode 100644 R/tidy_routine.R create mode 100644 cran-comments.md diff --git a/.Rbuildignore b/.Rbuildignore index 91114bf..e85d6ee 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,2 +1,4 @@ ^.*\.Rproj$ ^\.Rproj\.user$ +^cran-comments\.md$ +^\.travis\.yml$ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8d139ac --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r + +language: R +sudo: false +cache: packages diff --git a/DESCRIPTION b/DESCRIPTION index 5924194..84a9802 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: extdplyr Type: Package Title: Data Manipulation Extension based on dplyr and tidyr -Version: 0.1.2.9100 +Version: 0.1.3 Authors@R: person("Yuchen", "Wang", email = "ycwang0712@gmail.com", role = c("aut", "cre")) Description: If `dplyr` is a grammar for data manipulation, `extdplyr` is like diff --git a/R/tidy_routine.R b/R/tidy_routine.R deleted file mode 100644 index 78d645b..0000000 --- a/R/tidy_routine.R +++ /dev/null @@ -1,12 +0,0 @@ -tidy_routine <- function(df, into, regex, spread = "var") { - # col must have an element called var - stopifnot(spread %in% into) - suppressWarnings({ - # suppress attributes warning - df %>% - tidyr::gather(var_name, val, matches(regex)) %>% - tidyr::extract(var_name, into = into, regex = regex, convert = TRUE) %>% - tidyr::spread_(spread, "val") - - }) -} diff --git a/README.md b/README.md index 5a70c6c..91d7a28 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ `extdplyr` is an extension package for data manipulation based on `dplyr` and `tidyr`. +[![Travis-CI Build Status](https://travis-ci.org/wangyuchen/extdplyr.svg?branch=master)](https://travis-ci.org/wangyuchen/extdplyr) + + If `dplyr` is a grammar for data manipulation, `extdplyr` is like a short paragraph written in `dplyr`. `extdplyr` extends `dplyr` and `tidyr` verbs to some common "routines" that manipulate datasets. It uses the same interface and preserves all features from `dplyr` like fast performance and various data sources. ### Motivation @@ -7,3 +10,5 @@ If `dplyr` is a grammar for data manipulation, `extdplyr` is like a short paragr Also there are some cases where the operations don't comform to `dplyr`'s rules. Naturally one wouldn't expect these operations to be included into `dplyr`, but they can be implemented here for the occasional use. + + diff --git a/cran-comments.md b/cran-comments.md new file mode 100644 index 0000000..f6a1df1 --- /dev/null +++ b/cran-comments.md @@ -0,0 +1,14 @@ +## Test environments +* local OS X install, R 3.3.2 +* ubuntu 12.04 (on travis-ci), R 3.1.2 +* win-builder (release) + +## R CMD check results +There were no ERRORs or WARNINGs. + +There was 1 NOTE: + + Non-standard file/directory found at top level: + ‘examples’ + +`examples/` are used to store long scripts used in documents. From 750b17fe1df911f449872fec1baea21764f96255 Mon Sep 17 00:00:00 2001 From: Yuchen Wang Date: Tue, 21 Feb 2017 23:36:41 -0500 Subject: [PATCH 2/2] Release-0.1.3 --- DESCRIPTION | 2 +- cran-comments.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 84a9802..108333e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -6,7 +6,7 @@ Authors@R: person("Yuchen", "Wang", email = "ycwang0712@gmail.com", role = c("aut", "cre")) Description: If `dplyr` is a grammar for data manipulation, `extdplyr` is like a short paragraph written in `dplyr`. `extdplyr` extends `dplyr` and - `tidyr` verbs to some common "routines" that manipulate datasets. It uses + `tidyr` verbs to some common "routines" that manipulate data sets. It uses the same interface and preserves all the features from `dplyr`, has good performance, and supports various data sources. License: MIT + file LICENSE diff --git a/cran-comments.md b/cran-comments.md index f6a1df1..c1e581b 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,6 +1,6 @@ ## Test environments * local OS X install, R 3.3.2 -* ubuntu 12.04 (on travis-ci), R 3.1.2 +* ubuntu 12.04 (on travis-ci), R 3.3.2 * win-builder (release) ## R CMD check results