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

[[.stringr_pattern method not defined #529

Open
mkoohafkan opened this issue Oct 30, 2023 · 0 comments
Open

[[.stringr_pattern method not defined #529

mkoohafkan opened this issue Oct 30, 2023 · 0 comments
Labels
feature a feature request or enhancement

Comments

@mkoohafkan
Copy link

Method [.stringr_pattern is defined, but [[.stringr_pattern is not:

ex = coll(c("foo", "bar"))
ex[1]
#> [1] "foo"
#> attr(,"options")
#> attr(,"options")$locale
#> [1] "en"
#> 
#> attr(,"options")$strength
#> [1] 3
#> 
#> attr(,"class")
#> [1] "stringr_coll"    "stringr_pattern" "character"   
class(ex[1])
#> [1] "stringr_coll"    "stringr_pattern" "character" 

ex[[1]]
#> [1] "foo"
class(ex[[1]])
#> [1] "character"

Is this by design?

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

No branches or pull requests

2 participants