Closed hadley closed 5 years ago
With fresh install from from GitHub
I think this is a duplicate of #4049. The code works on #4054's branch.
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
packageDescription("dplyr")[c("GithubRef", "GithubSHA1")]
#> $GithubRef
#> [1] "fix-tidyeval-infloop"
#>
#> $GithubSHA1
#> [1] "0599ed464521f930d27ebf654b2bdeb8eaaec673"
df <- structure(list(date = structure(c(17244, 17092, 17179, 17182,
17213, 17216), class = "Date"), is_package = c(FALSE, FALSE,
FALSE, FALSE, FALSE, FALSE)), class = c("tbl_df", "tbl", "data.frame"
), row.names = c(NA, -6L))
df %>% filter(is_package)
#> # A tibble: 0 x 2
#> # … with 2 variables: date <date>, is_package <lgl>
df %>% filter(date > as.Date("2016-01-01"))
#> # A tibble: 6 x 2
#> date is_package
#> <date> <lgl>
#> 1 2017-03-19 FALSE
#> 2 2016-10-18 FALSE
#> 3 2017-01-13 FALSE
#> 4 2017-01-16 FALSE
#> 5 2017-02-16 FALSE
#> 6 2017-02-19 FALSE
df %>% filter(is_package, date > as.Date("2016-01-01"))
#> # A tibble: 0 x 2
#> # … with 2 variables: date <date>, is_package <lgl>
Created on 2018-12-25 by the reprex package (v0.2.1)
Thanks @yutannihilation!
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
If I break execution in a debugger, I see: