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
{{ message }}
Repository navigation
Param name of pins::pin_find() is interpreted as regex #270
pins::pin_find() and pins::pin_info() documentation about param name states:
The exact name of the pin to match when searching.
Under Details it additionally says:
For 'local' and 'packages' boards, the 'text' parameter searches the title and description of a pin using a regular expression.
I.e. it says nothing about name being interpreted as a regular expression. But it actually is.
pins::pin(x=mtcars,
board="local",
name="regex.unsafe.[name]")
# nothing foundpins::pin_find(board="local",
name="regex.unsafe.[name]")
#> A tibble: 0 x 4#> … with 4 variables: name <chr>, description <chr>, type <chr>, board <chr># wrapping `name` in literal sequence escapes `\\Q...\\E` makes the differencepins::pin_find(board="local",
name="\\Qregex.unsafe.[name]\\E")
#> A tibble: 1 x 4#> name description type board#> <chr> <chr> <chr> <chr>#>1 regex.unsafe.[name] "" table local
So, my primary question: Is this the intended behaviour?
If so, the documentation should be fixed to be more clear, especially because the name param of other functions like pins::pin_get() and pins::pin_remove() is not interpreted as a regular expression.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Activity
fix bug in `get_obj()`: `id` was wrongly interpreted as regex
javierluraschi commentedon Dec 11, 2020
Worth investigating...
avoid using regexp in pin_find() local boards to fix #270
update `get_obj()` to work with pins 0.4.5
github-actions commentedon Aug 30, 2022
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.