pointblank icon indicating copy to clipboard operation
pointblank copied to clipboard

`scan_data()` error

Open maelle opened this issue 6 months ago • 3 comments

Prework

Description

library(pointblank)
# explore data
scan_data(penguins)
#> Error in get(as.character(FUN), mode = "function", envir = envir): object 'label_value' of mode 'function' was not found

Created on 2025-06-19 with reprex v2.1.1

Session info

sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.5.1 (2025-06-13)
#>  os       Ubuntu 24.04.2 LTS
#>  system   x86_64, linux-gnu
#>  ui       X11
#>  language en_US.utf8
#>  collate  en_US.utf8
#>  ctype    en_US.utf8
#>  tz       Europe/Paris
#>  date     2025-06-19
#>  pandoc   3.6.3 @ /usr/share/positron/resources/app/quarto/bin/tools/x86_64/ (via rmarkdown)
#>  quarto   1.6.40 @ /home/maelle/.local/bin/quarto
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package      * version    date (UTC) lib source
#>  blastula       0.3.6      2025-04-03 [1] RSPM (R 4.5.0)
#>  cli            3.6.5      2025-04-23 [1] RSPM (R 4.5.0)
#>  digest         0.6.37     2024-08-19 [1] RSPM (R 4.5.0)
#>  dplyr          1.1.4      2023-11-17 [1] RSPM (R 4.5.0)
#>  evaluate       1.0.3      2025-01-10 [1] RSPM (R 4.5.0)
#>  farver         2.1.2      2024-05-13 [1] RSPM (R 4.5.0)
#>  fastmap        1.2.0      2024-05-15 [1] RSPM (R 4.5.0)
#>  fs             1.6.6      2025-04-12 [1] RSPM (R 4.5.0)
#>  generics       0.1.4      2025-05-09 [1] RSPM
#>  ggforce        0.5.0      2025-06-18 [1] CRAN (R 4.5.1)
#>  ggplot2        3.5.2      2025-04-09 [1] RSPM (R 4.5.0)
#>  glue           1.8.0      2024-09-30 [1] RSPM (R 4.5.0)
#>  gt             1.0.0      2025-04-05 [1] RSPM (R 4.5.0)
#>  gtable         0.3.6      2024-10-25 [1] RSPM (R 4.5.0)
#>  htmltools      0.5.8.1    2024-04-04 [1] RSPM (R 4.5.0)
#>  knitr          1.50       2025-03-16 [1] RSPM (R 4.5.0)
#>  lifecycle      1.0.4      2023-11-07 [1] RSPM (R 4.5.0)
#>  magrittr       2.0.3      2022-03-30 [1] RSPM (R 4.5.0)
#>  MASS           7.3-65     2025-02-28 [2] CRAN (R 4.5.1)
#>  pillar         1.10.2     2025-04-05 [1] RSPM (R 4.5.0)
#>  pkgconfig      2.0.3      2019-09-22 [1] RSPM (R 4.5.0)
#>  pointblank   * 0.12.2     2024-10-23 [1] RSPM (R 4.5.0)
#>  polyclip       1.10-7     2024-07-23 [1] RSPM
#>  R6             2.6.1      2025-02-15 [1] RSPM (R 4.5.0)
#>  RColorBrewer   1.1-3      2022-04-03 [1] RSPM (R 4.5.0)
#>  reprex         2.1.1      2024-07-06 [1] RSPM (R 4.5.0)
#>  rlang          1.1.6      2025-04-11 [1] RSPM (R 4.5.0)
#>  rmarkdown      2.29       2024-11-04 [1] RSPM (R 4.5.0)
#>  scales         1.4.0      2025-04-24 [1] CRAN (R 4.5.0)
#>  sessioninfo    1.2.3      2025-02-05 [1] RSPM (R 4.5.0)
#>  tibble         3.3.0      2025-06-08 [1] RSPM
#>  tidyselect     1.2.1      2024-03-11 [1] RSPM (R 4.5.0)
#>  tweenr         2.0.3      2024-02-26 [1] RSPM
#>  vctrs          0.6.5      2023-12-01 [1] RSPM (R 4.5.0)
#>  withr          3.0.2.9001 2025-05-16 [1] Github (r-lib/withr@59da597)
#>  xfun           0.52       2025-04-02 [1] RSPM (R 4.5.0)
#>  xml2           1.3.8      2025-03-14 [1] RSPM (R 4.5.0)
#>  yaml           2.3.10     2024-07-26 [1] RSPM (R 4.5.0)
#> 
#>  [1] /home/maelle/R/x86_64-pc-linux-gnu-library/4.5
#>  [2] /opt/R/4.5.1/lib/R/library
#>  * ── Packages attached to the search path.
#> 
#> ──────────────────────────────────────────────────────────────────────────────

Reproducible example

  • [x] Post a minimal reproducible example so the maintainer can troubleshoot the problems you identify. A reproducible example is:
    • [x] Runnable: post enough R code and data so any onlooker can create the error on their own computer.
    • [x] Minimal: reduce runtime wherever possible and remove complicated details that are irrelevant to the issue at hand.
    • [x] Readable: format your code according to the tidyverse style guide.

Expected result

I would expect no error. I get the same error with mtcars.

Session info

End the reproducible example with a call to sessionInfo() in the same session (e.g. reprex(session_info = TRUE)) and include the output.

maelle avatar Jun 19 '25 14:06 maelle

Thanks for reporting! I will look into this soon.

rich-iannone avatar Jun 21 '25 19:06 rich-iannone

Hi, is there any news on this? I get the same error when trying to use pointblank (v0.12.2). Both for my own data set and something like dplyr::storms.

> scan_data(dplyr::storms)

── Data Scan started. Processing 6 sections. ────────────────────────────────────────────────────────────
ℹ Starting assembly of 'Overview' section...
✔ ...Finished! 
ℹ Starting assembly of 'Variables' section...
✔ ...Finished!  (2.1 s)
ℹ Starting assembly of 'Interactions' section...
Error in get(as.character(FUN), mode = "function", envir = envir) : 
  object 'label_value' of mode 'function' was not found
SessionInfo()
> sessionInfo()
R version 4.4.3 (2025-02-28)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.3.2

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Zurich
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] here_1.0.1        pointblank_0.12.2

loaded via a namespace (and not attached):
 [1] vctrs_0.6.3        ggforce_0.5.0      cli_3.6.1          gt_0.10.0          rlang_1.1.1       
 [6] renv_1.0.3         generics_0.1.3     labeling_0.4.3     glue_1.6.2         rprojroot_2.0.3   
[11] htmltools_0.5.7    scales_1.4.0       fansi_1.0.4        tweenr_2.0.3       grid_4.4.3        
[16] tibble_3.2.1       base64enc_0.1-3    MASS_7.3-60        fastmap_1.1.1      yaml_2.3.7        
[21] lifecycle_1.0.3    compiler_4.4.3     dplyr_1.1.3        fs_1.6.3           polyclip_1.10-7   
[26] RColorBrewer_1.1-3 pkgconfig_2.0.3    rstudioapi_0.15.0  farver_2.1.1       blastula_0.3.6    
[31] digest_0.6.33      R6_2.5.1           tidyselect_1.2.0   utf8_1.2.3         pillar_1.9.0      
[36] magrittr_2.0.3     withr_2.5.1        gtable_0.3.4       tools_4.4.3        xml2_1.3.5        
[41] ggplot2_3.5.2

mtwente avatar Aug 23 '25 20:08 mtwente

fix: explicitly providing labeller = ggplot2::label_valueand using dply's èverything() added to #646

pachadotdev avatar Aug 26 '25 23:08 pachadotdev