Skip to content

Commit

Permalink
Intergation (#41)
Browse files Browse the repository at this point in the history
Making it compatible with testthat 2.0.0
Minor bug fix
Better onLoad
  • Loading branch information
ELToulemonde authored May 11, 2018
1 parent ad45172 commit 49ea9e5
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dataPreparation
Title: Automated Data Preparation
Version: 0.3.5
Version: 0.3.6
Authors@R: person("Emmanuel-Lin", "Toulemonde", email = "[email protected]", role = c("aut", "cre"))
Description: Do most of the painful data preparation for a data science project with a minimum amount of code; Take advantages of data.table efficiency and use some algorithmic trick in order to perform data preparation in a time and RAM efficient way.
Depends:
Expand All @@ -17,7 +17,7 @@ Suggests: knitr,
rmarkdown,
kableExtra,
pander,
testthat
testthat (>= 2.0.0)
VignetteBuilder: knitr
Imports: data.table
BugReports: https://github.com/ELToulemonde/dataPreparation/issues
8 changes: 8 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
V 0.3.6
=======
- Bug fixes:
- *identifyDates* had a weird bug. Solved

- Integration:
- Making dataPreparation compatible with testthat 2.0.0

V 0.3.5
=======
- New features:
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
V 0.3.6
=======
- Bug fixes:
- *identifyDates* had a weird bug. Solved

- Integration:
- Making dataPreparation compatible with testthat 2.0.0

V 0.3.5
=======
- New features:
Expand Down
1 change: 1 addition & 0 deletions R/datesManipulations.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ identifyDates <- function(dataSet, formats = NULL, n_test = 30, ambiguities = "I

## Initialization
formats_found <- list()
format <- NULL # Initialize format to NULL to avoid considering it by mistake as the function format
## Computation
if (verbose){
pb <- initPB(function_name, names(dataSet))
Expand Down
2 changes: 1 addition & 1 deletion R/onLoad.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' Show the NEWS file of the dataPreparation package.
#' @export
dataPrepNews <- function() {
newsfile <- file.path(system.file(package="dataPreparation"), "NEWS")
newsfile <- system.file("NEWS", package="dataPreparation")
file.show(newsfile)
}

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_aggregate.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_aggregate.R")
requireNamespace("data.table")
verbose <- TRUE

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_datesManipulation.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_datesManipulation.R")
requireNamespace("data.table")
verbose <- TRUE
Sys.setlocale("LC_TIME", "C")
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_description.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_description.R")
requireNamespace("data.table")
verbose <- TRUE
## Load data set
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_discretization.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_discretization.R")
verbose = TRUE
## build_bins
# ---------------
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_factorManipulation.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_factorManipulations.R")
requireNamespace("data.table")
verbose <- TRUE
## unFactor
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_fastFunctions.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_fastFunctions.R")
requireNamespace("data.table")
verbose <- TRUE
## fastFilterVariables
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_generateFromCharacter.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_generateFromCharacter.R")
requireNamespace("data.table")
verbose <- TRUE
## generateFromCharacter
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_generateFromDate.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_generateFromDate.R")
requireNamespace("data.table")
Sys.setlocale("LC_TIME", "C")
verbose <- TRUE
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_generateFromFactor.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_generateFromFactor.R")
requireNamespace("data.table")
verbose <- TRUE
## generateFromFactor
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_genericFunctions.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_genericFunctions.R")
requireNamespace("data.table")
verbose <- TRUE
Sys.setlocale("LC_TIME", "C")
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_numericsManipulations.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_numericsManipulations.R")
requireNamespace("data.table")
verbose <- TRUE

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_onLoad.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_onLoad.R")
requireNamespace("data.table")
verbose <- TRUE

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_prepareSet.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_prepareSet.RR")
verbose <- TRUE

## prepareSet
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_sameShape.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_sameShape.R")
requireNamespace("data.table")
verbose <- TRUE

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_scale.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_scale.R")
requireNamespace("data.table")
verbose <- TRUE
## build_scales
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_setColAs.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_setColAs.R")
requireNamespace("data.table")
verbose <- TRUE
## setColAsNumeric
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_shapeSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#--------------------------------
# http://r-pkgs.had.co.nz/tests.html
# http://stat545.com/packages05_foofactors-package-02.html
context("test_shapeSet.R")
verbose <- TRUE
## prepareSet
#----------------
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_whichFunctions.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
context("test_whichFunctions.R")
requireNamespace("data.table")
verbose <- TRUE

Expand Down

0 comments on commit 49ea9e5

Please sign in to comment.