Skip to content

Commit

Permalink
Support dev tibble
Browse files Browse the repository at this point in the history
Which throws error when subsetting with NULL
  • Loading branch information
hadley committed Jun 17, 2016
1 parent 45c5f45 commit 3a3249e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# purrr 0.2.1.9000

* Fix for dev tibble support.

* `as_function()` now supports list arguments which allow recursive indexing
using either names or positions. They now always stop when encountering
the first NULL (#173).
Expand Down
2 changes: 1 addition & 1 deletion R/rows.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ set_sliced_env <- function(df, labels, collate, to, env, x_name) {
env$.collate <- collate
env$.to <- to
env$.labels_cols <- attr(df, "labels")
env$.slicing_cols <- df[names(env$.labels_cols)]
env$.slicing_cols <- df[names(env$.labels_cols) %||% character(0)]

indices <- attr(df, "indices")
env[[x_name]] <- df[!names(df) %in% names(env$.labels_cols)]
Expand Down

0 comments on commit 3a3249e

Please sign in to comment.