Skip to content

Allow messages about tables when running create_template()#431

Merged
Schiano-NOAA merged 3 commits intodevfrom
allow-msgs
Mar 27, 2026
Merged

Allow messages about tables when running create_template()#431
Schiano-NOAA merged 3 commits intodevfrom
allow-msgs

Conversation

@sbreitbart-NOAA
Copy link
Copy Markdown
Collaborator

What is the feature?

  • Allow messages about tables when running create_template()

How have you implemented the solution?

  • Commenting out lines in create_template() that suppressed warnings and messages for the create_tables_doc() call that weren't present for create_figures_doc() call

Does the PR impact any other area of the project, maybe another repo?

  • No

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 3, 2026

Checklist

  • PR base branch is accurate
  • Is the code concise?
  • Comments are clear and useful.
  • Can you remove or combine any arguments?
  • Do argument contain defaults (if appliable)?
  • Code is documented and example provided (Roxygen).
  • Did you make a test (testthat)?
  • Was this tested under multiple scenarios?
  • Did you run devtools::check()?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 3, 2026

Code Metrics Report

Coverage Code to Test Ratio Test Execution Time
36.7% 1:0.2 27s

Code coverage of files in pull request scope (38.7%)

Files Coverage
R/create_template.R 38.7%

Reported by octocov

@sbreitbart-NOAA
Copy link
Copy Markdown
Collaborator Author

@Schiano-NOAA Could you pls review this PR?

Copy link
Copy Markdown
Collaborator

@Schiano-NOAA Schiano-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending this reminder! Not sure how I didn't notice it

@Schiano-NOAA Schiano-NOAA merged commit 98c7845 into dev Mar 27, 2026
3 checks passed
@Schiano-NOAA Schiano-NOAA deleted the allow-msgs branch March 27, 2026 17:28
Schiano-NOAA added a commit that referenced this pull request Mar 27, 2026
* Update "ESP" meaning in glossary as per #423

* update cheatsheet to remove 'withr()' wrapper from add_a11y function (#424)

* Update special characters in glossary (#425)

* Update glossary so that meanings with underscores have backslash to escape underscore

* Update glossary so that meanings and acronyms have backslashes to escape special characters, and underscores in labels are converted to hyphens

* Update glossary so that underscores and parentheses in labels are converted to hyphens

* update affiliation with duplicate city for afsc seattle offices (#426)

* Update preamble prompt (#430)

* Update prompt about preamble as per #416 (comment)

* Update prompt about preamble to exactly match suggestion in #416 (comment)

* Update SAFE template table structure from flextable to asar (#432)

* Update a11y guide with info about how to escape special characters in alt text/captions csv

* Update readme example create_template() arg from 'author' to 'authors'

* Update SAFE template table structure from flextable to asar as per #428

* Update functions that relied on 'flextable' and convert to 'gt' (#429)

* Update a11y guide with info about how to escape special characters in alt text/captions csv

* Update readme example create_template() arg from 'author' to 'authors'

* Update ID_tbl_width_class() to work with gt tables, vs flextables

* Update create_tables_doc() and related functions so begin replacing flextable-based pipeline with gt (for identifying table width, and splitting/rotating where needed). Next step: split super-long tables where necessary

* create new function to get table length; update documentation

* Redesign tables doc workflow to work with >1 tables shown on portrait orientation and 1 table shown on landscape orientation

* Redesign tables doc workflow to work with >1 table shown on landscape orientation

* Redesign tables doc workflow to work with remaining types of tables

* update tests by removing flextable and replacing with gt

* sub flextable with gt in DESCRIPTION and devcontainer

* create tests for ID_tbl_length_class()

* Update tests

* Update captions for split tables by removing individual column names shown, and instead state number of table vs total number of tables

* Update render_lg_table() to work with varying essential column values, and redesign to better work with gt tables vs flextables; update documentation and tests

* Delete unusable, duplicated license

* Address warnings in R cmd check

* Comment out code that restricts table column width unnecessarily, since tab_options(table.width) is sufficient; add "tbl-pos: 't'" to table chunk options to anchor tables

* Edit add_child() to add line to tables chunk in skeleton to add  "clearpage" latex command

* Update captions for tables split by columns to remove mention of specific columns in the table

* Set col widths for tables; fix issue with extra-wide tables

* Add missing pipes to create_tables_doc()

* add gt_split into utils (#433)

* add gt_split into utils

* remove header from gt and add function dependencies in gt_split

* update documentation for gt_split in export

* update create_tables_doc to reference asar::gt_split and not gt

---------

Co-authored-by: Sam Schiano <125507018+Schiano-NOAA@users.noreply.github.com>

* Fix typo and update WORDLIST

* Allow messages about tables when running create_template() (#431)

* Update a11y guide with info about how to escape special characters in alt text/captions csv

* Update readme example create_template() arg from 'author' to 'authors'

* Allow messages in create_template() stating if tables aren't found, and how to make them, to match messaging produced for figures

* add float package to in-header tex (#427)

* update documentation

* Comment out tests that should pass once nmfs-ost/stockplotr#205 is merged

* change action so only comments when the PR is first opened (#435)

* update version in pkg and cheatsheet

* fix date in cheatsheet

* Add missing leading zeroes back to affiliation zip codes

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants