Skip to content

Commit bd0c6b0

Browse files
authored
Merge pull request #351 from lionel-/release-0.7.1
Hotfix release 0.7.1
2 parents 5613fe2 + 1697d80 commit bd0c6b0

File tree

5 files changed

+28
-13
lines changed

5 files changed

+28
-13
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: tidyr
22
Title: Easily Tidy Data with 'spread()' and 'gather()' Functions
3-
Version: 0.7.0.9000
3+
Version: 0.7.1
44
Authors@R: c(
55
person("Hadley", "Wickham", , "[email protected]", c("aut", "cre")),
66
person("Lionel", "Henry", , "[email protected]", "aut"),

NEWS.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11

2-
# tidyr 0.7.0.9000
2+
# tidyr 0.7.1
3+
4+
This is a hotfix release to account for some tidyselect changes in the
5+
unit tests.
6+
7+
Note that the upcoming version of tidyselect backtracks on some of the
8+
changes announced for 0.7.0. The special evaluation semantics for
9+
selection have been changed back to the old behaviour because the new
10+
rules were causing too much trouble and confusion. From now on data
11+
expressions (symbols and calls to `:` and `c()`) can refer to both
12+
registered variables and to objects from the context.
13+
14+
However the semantics for context expressions (any calls other than to
15+
`:` and `c()`) remain the same. Those expressions are evaluated in the
16+
context only and cannot refer to registered variables. If you're
17+
writing functions and refer to contextual objects, it is still a good
18+
idea to avoid data expressions by following the advice of the 0.7.0
19+
release notes.
320

421

522
# tidyr 0.7.0

cran-comments.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
This is a hotfix release to fix tests in prevision of an upcoming
2+
tidyselect update.
3+
14
## Test environments
25

36
* local OS X install, R 3.4.1
@@ -12,10 +15,5 @@
1215

1316
## Reverse dependencies
1417

15-
I have run R CMD check on the 268 downstream dependencies. (Summary at
16-
https://github.com/tidyverse/tidyr/tree/master/revdep).
17-
18-
There were 9 problematic packages. We carefully reviewed each failure
19-
and determined that they were due to a deliberate backward
20-
incompatible change to the tidyr API. Authors were notified on August
21-
1 (two weeks ago) with a suggested fix for the problem.
18+
I have not run the reverse dependencies since this release is
19+
identical to the previous one except for a couple of unit tests.

man/tidyr-package.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-drop_na.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ test_that("empty call drops every row", {
3737

3838
test_that("errors are raised", {
3939
df <- tibble(x = c(1, 2, NA), y = c("a", NA, "b"))
40-
expect_error(tidyr::drop_na(df, NULL), "must resolve to integer column positions")
41-
expect_error(tidyr::drop_na(df, "z"), "must match column names")
40+
expect_error(tidyr::drop_na(df, !! list()))
41+
expect_error(tidyr::drop_na(df, "z"))
4242
})

0 commit comments

Comments
 (0)