You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason I noticed this is that group_by_prepare(data.frame(x = 1)) works with CRAN dplyr but not dev dplyr, which causes group_by to fail in dtplyr if dev dplyr is installed.
It seems to be because caller_env is self-referencing in the function signature. I guess the users of this function would be package developers who can probably figure out what's going on and just supply the arguments, but it was a little confusing. Maybe these arguments could have no default to make the error more understandable (argument "caller_env" is missing rather than promise already under evaluation), or caller_env renamed to .caller_env.
The default values for arguments
caller_env
anderror_call
ingroup_by_prepare
don't seem to workgroup_by_prepare
with defaulterror_call
Created on 2022-08-31 with reprex v2.0.2
with
error_call
supplied but notcaller_env
, adding a columnCreated on 2022-08-31 with reprex v2.0.2
The reason I noticed this is that
group_by_prepare(data.frame(x = 1))
works with CRAN dplyr but not dev dplyr, which causesgroup_by
to fail in dtplyr if dev dplyr is installed.It seems to be because
caller_env
is self-referencing in the function signature. I guess the users of this function would be package developers who can probably figure out what's going on and just supply the arguments, but it was a little confusing. Maybe these arguments could have no default to make the error more understandable (argument "caller_env" is missing
rather thanpromise already under evaluation
), orcaller_env
renamed to.caller_env
.dplyr/R/group-by.r
Lines 193 to 199 in 48431a5
Created on 2022-08-31 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: