Skip to content

Commit

Permalink
Prepare for CRAN submission
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigOlsen committed Jun 18, 2020
1 parent 53163d6 commit 21beb30
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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()`.

Expand Down
3 changes: 2 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,8 @@ xpectr::gxs_function(
"y" = list(),
"z" = list(10)
),
identation = 2
identation = 2,
copy_env = FALSE
)
#
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,8 @@ xpectr::gxs_function(
"y" = list(),
"z" = list(10)
),
identation = 2
identation = 2,
copy_env = FALSE
)

#
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 5 additions & 4 deletions revdep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Binary file added revdep/data.sqlite
Binary file not shown.
3 changes: 2 additions & 1 deletion vignettes/readme.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,8 @@ xpectr::gxs_function(
"y" = list(),
"z" = list(10)
),
identation = 2
identation = 2,
copy_env = FALSE
)
#
Expand Down

0 comments on commit 21beb30

Please sign in to comment.