diff --git a/DESCRIPTION b/DESCRIPTION index e48babe..4f949af 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: xpectr Title: Generates Expectations for 'testthat' Unit Testing -Version: 0.3.0.9000 +Version: 0.4.0 Authors@R: c(person(given = "Ludvig Renbo", family = "Olsen", diff --git a/NEWS.md b/NEWS.md index c80ab9f..9910980 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,10 +1,10 @@ -# xpectr 0.3.0.9000 +# xpectr 0.4.0 * `wrapStringAddin()` now wraps short strings in `paste0()` as well. Previously, strings that were too short to be split were not wrapped. * Adds `insertExpectationsCopyEnvAddin()` addin. Same as `insertExpectationsAddin()` but where code is evaluated in a deep copy of the parent environment. This is especially useful when testing a function that alters non-local variables and has side effects (error/warnings/messages). -* Multiple functions now allow working on a deep copy of the environment. This is useful when testing a function that alters non-local variables. It is disabled by default to save memory. +* Multiple functions now allow working on a deep copy of the environment (see new `copy_env` argument). This is useful when testing a function that alters non-local variables. It is disabled by default to save memory. * `gxs_function()` now allows parallelization of the expectation generation process. Requires a backend, as setup with `doParallel::registerDoParallel(4)`. Remember to set `parallel = TRUE` when calling `gxs_function()`. diff --git a/README.Rmd b/README.Rmd index 3ed9a0c..4669928 100644 --- a/README.Rmd +++ b/README.Rmd @@ -719,7 +719,8 @@ xpectr::gxs_function( "y" = list(), "z" = list(10) ), - identation = 2 + identation = 2, + copy_env = FALSE ) # diff --git a/README.md b/README.md index af152b0..82d9ee9 100644 --- a/README.md +++ b/README.md @@ -793,7 +793,8 @@ xpectr::gxs_function( "y" = list(), "z" = list(10) ), - identation = 2 + identation = 2, + copy_env = FALSE ) # diff --git a/cran-comments.md b/cran-comments.md index 14eeacf..1a020b7 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,6 +1,6 @@ ## Test environments * local OS X install, R 3.6.1 -* ubuntu 14.04 (on travis-ci), R 3.6.1 +* ubuntu 14.04 (on travis-ci), R 3.6.3, 4.0.0 and devel * win-builder (devel and release) ## R CMD check results diff --git a/revdep/README.md b/revdep/README.md index 429989a..c987431 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -10,13 +10,14 @@ |collate |en_US.UTF-8 | |ctype |en_US.UTF-8 | |tz |Europe/Copenhagen | -|date |2020-03-31 | +|date |2020-06-18 | # Dependencies -|package |old |new |Δ | -|:-------|:-----|:-----|:--| -|xpectr |0.2.0 |0.3.0 |* | +|package |old |new |Δ | +|:-------|:-----|:----------|:--| +|xpectr |0.3.0 |0.4.0 |* | +|tibble |NA |3.0.1.9000 |* | # Revdeps diff --git a/revdep/data.sqlite b/revdep/data.sqlite new file mode 100644 index 0000000..0f8435e Binary files /dev/null and b/revdep/data.sqlite differ diff --git a/vignettes/readme.Rmd b/vignettes/readme.Rmd index f29c7a4..0c8e56a 100644 --- a/vignettes/readme.Rmd +++ b/vignettes/readme.Rmd @@ -703,7 +703,8 @@ xpectr::gxs_function( "y" = list(), "z" = list(10) ), - identation = 2 + identation = 2, + copy_env = FALSE ) #