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

Bug in snip_list() for columns containing spaces #546

Closed
jl5000 opened this issue Jul 26, 2024 · 1 comment · Fixed by #555
Closed

Bug in snip_list() for columns containing spaces #546

jl5000 opened this issue Jul 26, 2024 · 1 comment · Fixed by #555

Comments

@jl5000
Copy link

jl5000 commented Jul 26, 2024

When I use snip_list() on a column containing spaces, it returns an error.

library(pointblank)
library(tibble)
#> Warning: package 'tibble' was built under R version 4.1.3

create_informant(tbl = tibble(`Test col` = letters)) |> 
  info_columns(`Test col`,
               Description = "Letter",
               Values = "{letters_snippet}") |> 
  info_snippet("letters_snippet", snip_list("Test col")) |> 
  incorporate()
#> Error in str2lang(x): <text>:1:28: unexpected symbol
#> 1: ~ . %>% dplyr::select(Test col
#>                                ^

Created on 2024-07-26 with reprex v2.0.2

Session info
sessioninfo::session_info()
#> - Session info ---------------------------------------------------------------
#>  setting  value
#>  version  R version 4.1.1 (2021-08-10)
#>  os       Windows 10 x64 (build 19045)
#>  system   x86_64, mingw32
#>  ui       RTerm
#>  language (EN)
#>  collate  English_United Kingdom.1252
#>  ctype    English_United Kingdom.1252
#>  tz       Europe/London
#>  date     2024-07-26
#>  pandoc   2.11.4 @ C:/Program Files/RStudio/bin/pandoc/ (via rmarkdown)
#> 
#> - Packages -------------------------------------------------------------------
#>  package     * version date (UTC) lib source
#>  blastula      0.3.3   2023-01-07 [1] CRAN (R 4.1.3)
#>  cli           3.6.1   2023-03-23 [1] CRAN (R 4.1.3)
#>  digest        0.6.31  2022-12-11 [1] CRAN (R 4.1.3)
#>  dplyr         1.1.2   2023-04-20 [1] CRAN (R 4.1.3)
#>  evaluate      0.21    2023-05-05 [1] CRAN (R 4.1.1)
#>  fansi         1.0.4   2023-01-22 [1] CRAN (R 4.1.3)
#>  fastmap       1.1.1   2023-02-24 [1] CRAN (R 4.1.3)
#>  fs            1.5.2   2021-12-08 [1] CRAN (R 4.1.3)
#>  generics      0.1.3   2022-07-05 [1] CRAN (R 4.1.3)
#>  glue          1.6.2   2022-02-24 [1] CRAN (R 4.1.3)
#>  htmltools     0.5.5   2023-03-23 [1] CRAN (R 4.1.3)
#>  knitr         1.45    2023-10-30 [1] CRAN (R 4.1.1)
#>  lifecycle     1.0.3   2022-10-07 [1] CRAN (R 4.1.3)
#>  magrittr      2.0.3   2022-03-30 [1] CRAN (R 4.1.3)
#>  pillar        1.9.0   2023-03-22 [1] CRAN (R 4.1.3)
#>  pkgconfig     2.0.3   2019-09-22 [1] CRAN (R 4.1.3)
#>  pointblank  * 0.12.1  2024-03-25 [1] CRAN (R 4.1.1)
#>  R6            2.5.1   2021-08-19 [1] CRAN (R 4.1.3)
#>  reprex        2.0.2   2022-08-17 [1] CRAN (R 4.1.3)
#>  rlang         1.1.0   2023-03-14 [1] CRAN (R 4.1.3)
#>  rmarkdown     2.25    2023-09-18 [1] CRAN (R 4.1.1)
#>  rstudioapi    0.15.0  2023-07-07 [1] CRAN (R 4.1.1)
#>  sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.1.3)
#>  tibble      * 3.2.1   2023-03-20 [1] CRAN (R 4.1.3)
#>  tidyselect    1.2.0   2022-10-10 [1] CRAN (R 4.1.3)
#>  utf8          1.2.3   2023-01-31 [1] CRAN (R 4.1.3)
#>  vctrs         0.6.1   2023-03-22 [1] CRAN (R 4.1.3)
#>  withr         2.5.0   2022-03-03 [1] CRAN (R 4.1.3)
#>  xfun          0.39    2023-04-20 [1] CRAN (R 4.1.3)
#>  yaml          2.3.7   2023-01-23 [1] CRAN (R 4.1.3)
#> 
#>  [1] C:/Program Files/R/R-4.1.1/library
#> 
#> ------------------------------------------------------------------------------
@rich-iannone
Copy link
Member

Thanks for letting us know. This can be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment