pointblank
pointblank copied to clipboard
clicking the CSV button in Positron does not download extracts
Prework
- [x] Read and agree to the code of conduct and contributing guidelines.
- [x] If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
Description
When clicking the CSV button on an agent report table in the Positron Viewer, nothing happens.
Expected result
Expect that clicking will download the csv file with the data extracts, similar to behavior in RStudio.
Session info
> sessionInfo()
R version 4.4.0 (2024-04-24)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.5 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: UTC
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] pointblank_0.12.2 lubridate_1.9.4 forcats_1.0.0 stringr_1.5.1 dplyr_1.1.4
[6] purrr_1.1.0 readr_2.1.5 tidyr_1.3.1 tibble_3.3.0 ggplot2_3.5.2
[11] tidyverse_2.0.0 paws_0.9.0
loaded via a namespace (and not attached):
[1] gt_1.0.0 utf8_1.2.6 rappdirs_0.3.3 sass_0.4.10 generics_0.1.4
[6] xml2_1.3.8 stringi_1.8.7 paws.common_0.8.4 hms_1.1.3 digest_0.6.37
[11] magrittr_2.0.3 grid_4.4.0 timechange_0.3.0 RColorBrewer_1.1-3 fastmap_1.2.0
[16] scales_1.4.0 httr2_1.2.1 cli_3.6.5 rlang_1.1.6 crayon_1.5.3
[21] litedown_0.7 commonmark_2.0.0 bit64_4.6.0-1 base64enc_0.1-3 withr_3.0.2
[26] tools_4.4.0 parallel_4.4.0 tzdb_0.5.0 curl_6.4.0 vctrs_0.6.5
[31] R6_2.6.1 lifecycle_1.0.4 bit_4.6.0 vroom_1.6.5 pkgconfig_2.0.3
[36] pillar_1.11.0 gtable_0.3.6 glue_1.8.0 Rcpp_1.1.0 xfun_0.52
[41] tidyselect_1.2.1 paws.storage_0.9.0 farver_2.1.2 htmltools_0.5.8.1 compiler_4.4.0
[46] blastula_0.3.6 markdown_2.0
@rich-iannone I wrote this MWE and I get the CSV file
> library(pointblank)
> tbl <- dplyr::tibble(a = c(5, 7, 8, 5, 2))
> agent <-
+ create_agent(
+ tbl = tbl,
+ tbl_name = "small_table",
+ label = "An example."
+ ) %>%
+ col_vals_gt(columns = a, value = 4) %>%
+ interrogate()
── Interrogation Started - there is a single validation step ────────────────────────────────────────────────────────
✔ Step 1: OK.
── Interrogation Completed ──────────────────────────────────────────────────────────────────────────────────────────
> report <- get_agent_report(agent)
+
+ report
>
when I open the report in Firefox I get the CSV file
"a"
2
this is a Positron/VSCode-specific issue
@rich-iannone I got it! Electron apps block data:// links for security reasons. I think we should close this issue after adding a note like "open in an external browser to access all features"