Skip to content

Bug with logical subsetting #99

@hadley

Description

@hadley
str_atp <- c("mAmYmY", "nbAnsAmA", "")
atp_alph <- c("mA", "mY", "nbA", "nsA")

x <- tidysq::alphabet(tidysq::sq(str_atp, alphabet = atp_alph))
x[c(TRUE, TRUE, FALSE, FALSE)]
#> [1] "mA" "mY" NA   NA

Created on 2024-11-25 with reprex v2.1.0

For reasons I don't fully understand this unfortunately breaks testthat::expect_setequal() in the dev version of testthat, but it seems like something you should fix anyway. (Actually what I don't understand is why expect_setequal() ever worked, not why it fails now).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions