`ggplot2::ggsave()` error with `pointblank::scan_data()`
Open
@rich-iannone is already working on this.
Since Feb 8, 2024.
Difficulty: [2] Intermediate
Effort: [2] Medium
Priority: [3] High
Type: ☹︎ Bug
- Dominant language
- R
- Stars
- 1k
- Forks
- 59
- Avg merge
- 25m
- Merged PRs (30d)
- 4
Description
Prework
- Read and agree to the code of conduct and contributing guidelines.
- If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
Description
Error triggered when executing scan_data() on a data.table object with 34 rows and 268 columns:
Error in ggplot2::ggsave():
! Dimensions exceed 50 inches (heightandwidthare specified in inches not pixels).
ℹ If you're sure you want a plot that big, uselimitsize = FALSE.
Run rlang::last_trace() to see where the error occurred.
rlang::last_trace() Output:
Backtrace:
▆
1. ├─pointblank::scan_data(charities_pc_dat[[1]])
2. │ └─pointblank:::build_table_scan_page(...)
3. │ └─sections %>% ...
4. └─base::lapply(...)
5. └─pointblank (local) FUN(X[[i]], ...)
6. └─pointblank:::probe_interactions_assemble(data = data, lang = lang)
7. ├─base::suppressWarnings(probe_interactions(data = data))
8. │ └─base::withCallingHandlers(...)
9. └─pointblank:::probe_interactions(data = data)
10. └─ggplot2::ggsave(...)
Reproducible example
URL <- ""https://nccsdata.s3.amazonaws.com/harmonized/core/CORE-2009-501C3-CHARITIES-PC-HRMN.csv"
data <- data.table::fread( URL )
pointblank::scan_data( dat )
Expected result
scan_data() should have returned the HTML output.
Session info
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.