Skip to content

str_detect keyword arguments generate errors #444

@kmishra9

Description

@kmishra9

Code that ran fine under past versions of dbplyr threw some errors. I'm assuming the changes made in the newest dbplyr changelog (1.4.3) probably created the issue?

library("dplyr", warn.conflicts = FALSE)

lf <- dbplyr::lazy_frame(x = "0.88", con = dbplyr::simulate_postgres())

lf %>% mutate(has_88 = str_detect(string = x, pattern = "88"))
#> <SQL>
#> Error in str_detect(string = x, pattern = "88"): unused arguments (string = x, pattern = "88")

lf %>% mutate(has_88 = str_detect(x, "88"))
#> <SQL>
#> SELECT `x`, `x` ~ '88' AS `has_88`
#> FROM `df`

Created on 2020-05-07 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions