dplyr 0.5.0 - distinct_ requires .dots argument

52 views
Skip to first unread message

Ross Gayler

unread,
Jun 28, 2016, 10:40:11 PM6/28/16
to manipulatr
Hi all,

I have some code that broke when I updated to dplyr 0.5.0:

d %<>%
  dplyr
::select_(~ id) %>%
  dplyr
::distinct_()
> d %<>%
+   dplyr::select_(~ id) %>%
+   dplyr::distinct_()
Error in as.lazy_dots(.dots) :
  argument
".dots" is missing, with no default

The following code works:

d %>%
  dplyr
::select_(~ id) %>%
  dplyr
::distinct_(.dots = NULL)

Is this an intentional change or an unintended consequence of other changes to distinct?

Thanks

Ross




Ross Gayler

unread,
Jun 28, 2016, 11:04:36 PM6/28/16
to manipulatr
I just noticed that the error only occurs with grouped input. I have raised an issue https://github.com/hadley/dplyr/issues/1981


Reply all
Reply to author
Forward
0 new messages