Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if_else missing keyword errors #641

Closed
kmishra9 opened this issue Apr 14, 2021 · 0 comments · Fixed by #645
Closed

if_else missing keyword errors #641

kmishra9 opened this issue Apr 14, 2021 · 0 comments · Fixed by #645

Comments

@kmishra9
Copy link

The following code errors in dbplyr but shouldn't:

library(tidyverse)
library(dbplyr)

lf <- lazy_frame(a = c(1,2,3,NA))

lf %>% mutate(if_else(condition = a > 1, true = a, false = 1, missing = 1))
#> Error in if_else(condition = a > 1, true = a, false = 1, missing = 1): unused argument (missing = 1)

A simple coalesce() does the job for now, but putting this on the radar!

Created on 2021-04-14 by the reprex package (v0.3.0)

Created on 2021-04-14 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant