Skip to content

Releases: insightsengineering/rtables

v0.6.6

Choose a tag to compare

@insights-engineering-bot insights-engineering-bot released this 08 Dec 11:11
f4c7da7

New Features

  • Removed ref_group reordering in column splits so not to change the order.
  • Added bold argument to as_html to bold specified elements, and header_sep_line
    argument to print a horizontal line under the table header in rendered HTML output.
  • Duplicate referential footnotes are consolidated when tables are rendered.
  • Section divisors can be set for analysis rows.
  • Added setter and getter for section dividers (section_div and section_div<-). They also accept
    split section structure assignment.
  • Added header_section_div setters and getters for layout and table objects along with
    related basic_table parameter.
  • Added na_str argument to analyze_colvars to set custom string to print in place of missing values.
  • Added flat data.frame outputs for as_result_df() via flag parameters as_viewer, as_strings, and
    expand_colnames.
  • Migrated export_as_pdf function to formatters.

Bug Fixes

  • Fixed a bug that was failing when wrapping and section dividers were used at the same time.
  • Fixed a bug in as_result_df causing misalignment of column names.
  • Fixed a bug that was not allowing path indexing as row_paths() was giving a different path due to it being made of
    named values.
  • Fixed a bug in as_result_df when called on tables with less than 3 rows.

Miscellaneous

  • Applied styler and resolved package lint. Changed default indentation from 4 spaces to 2.
  • Added Developer Guide to pkgdown site with Debugging, Split Machinery, and Tabulation sections.
  • Whitespace is not trimmed when rendering tables with as_html.
  • Started deprecation cycle for col_fnotes_here to be replaced with col_footnotes.
  • Exported section_div methods now have a dedicated documentation page that is visible to users.
  • When tables are exported as txt, they preserve the horizontal separator of the table.
  • Added imports on stringi and checkmate as they are fundamental packages for string handling and
    argument checking.
  • Updated introduction vignette and split it into two. Section on introspecting tables is now located in a separate vignette.

What's Changed

New Contributors

Full Changelog: v0.6.5...v0.6.6

v0.6.5

Choose a tag to compare

@insights-engineering-bot insights-engineering-bot released this 19 Oct 13:55
0abb40a

New Features

  • Added support for white spaces in all labels and text by redesigning of wrapping functions in formatters.
  • Added support for new line characters across rtables (titles, column names, row names, footers, and na_str).
  • Modified top left information vertical alignment to stay at the bottom of the header.

Bug Fixes

  • Fixed a bug causing Viewer and as_html to fail when new line characters were added.

Miscellaneous

  • Added slide decks for advanced training as internal files.

What's Changed

New Contributors

Full Changelog: v0.6.3...v0.6.5

v0.6.4

Choose a tag to compare

@insights-engineering-bot insights-engineering-bot released this 03 Oct 17:28

New Features

  • Added support for .docx exports with export_as_docx().
  • Expanded support for flextable customization with theme function specific for word documents (theme_docx_default()).

Bug Fixes

  • Fixed bug causing all-NA rows to be included in every .df_row split.

Miscellaneous

  • Specified minimal version of package dependencies.

What's Changed

New Contributors

Full Changelog: v0.6.3...v0.6.4

v0.6.3 CRAN

Choose a tag to compare

@insights-engineering-bot insights-engineering-bot released this 30 Aug 22:49
0a9e373

New Features

  • Analysis functions (cfun/afun) can use new parameters to extend analysis calculations: .alt_df_row and .alt_df give access to alt_counts_df across columns, while .all_col_exprs and .all_col_counts contains global information about all columns.
  • Binding objects via rbind will retain titles/footer information if identical in all objects or only present in the first object being bound.

Enhancements

  • Analysis functions (cfun/afun) have more information about current column split; .spl_context has access to cur_col_id, cur_col_expr, cur_col_split, and cur_col_split_val.
  • Added vignette on exploratory analysis with qtable.
  • Extracted qtable_layout from qtable.

Bug Fixes

  • Page-by splits which generate zero facets (and thus tables which would have zero pages when rendered) now throw an informative error at table build time.
  • Removed superfluous warning which arose for custom split functions when reference group is is set (#707 (comment)).
  • Fixed qtable labeling via row_labels (#698).
  • Error catching and test coverage for cases where alt_counts_df presents different splits from df.

Miscellaneous

  • Cleaned up spelling in documentation (#685)
  • Custom appearance vignette updated with decimal alignment support.
  • Alignment checks have been moved into formatters: formatters::check_aligns superseded internal function chk_rtables_align and formatters::list_valid_aligns superseded rtables_aligns.

What's Changed

New Contributors

  • @m7pr made their first contribution in #685

Full Changelog: v0.6.2...v0.6.3

v0.6.2

Choose a tag to compare

@insights-engineering-bot insights-engineering-bot released this 20 Jul 05:22
d294ac0
  • Fixed major regressions for page_by machinery caused by migration to formatters 0.5.1 pagination framework.
  • Fixed page_by labels become missing when only one level exist in the split_rows_by.
  • Fixed a bug when dropping var levels but not lblvar levels.
  • Added checks to catch bad labels (with {}) and throw informative error.
  • Added qtable function to create a table with a single top-level structure in both row and column dimensions involving faceting by 0 or more variables in each.
  • Added as_result_df function to flattern a table into a dataframe.
  • Added sanitize_table_struct, validate_table_struct, find_degen_struct to support degenerative table rendering.

What's Changed

New Contributors

  • @walkowif made their first contribution in #605
  • @Nolan-Steed made their first contribution in #677

Full Changelog: v0.6.0...v0.6.2

v0.6.1 - CRAN

Choose a tag to compare

@github-actions github-actions released this 19 May 23:34
fa22cac
  • Improved resilience of pagination machinery (paginate_table) by generalizing parameters' defaults (cpp, lpp, and font_size).
  • Moved export_as_txt to formatters. Added to reexports.
  • Migrated export_as_rtf to formatters. Not re-exported.
  • add r2rtf to Suggests
  • pagination logic has been migrated completely (excepting page_by splits) to formatters and is now invoked from there. paginate_table remains as a convenience function.
  • Removed warning in str method when called upon table objects.
  • Provide str method for VTableTree objects with a default max.level of 3, as the infinite default from base is not
    useful or informative.
  • default font_size value is now 8 across pagination and export machinery
  • margins argument in pagination and export machinery now (correctly) interpreted as inches. This change is inherited from formatters
  • lpp and cpp now default to NA_integer_, which is interpreted as inferring their value from the physical page size specified.
  • Horizontal pagination now occurs by default due to the above (because there is a default page type - "letter". Pagination can still be turned off in either direction by setting l/cpp to NULL explicitly.
  • Referential footnotes now have both a symbol and an index. Messages associated with symbols will only appear once per page in the footer materials regardless of number of elements referenced in the page with that symbol. Matches and inherits from changes in formatters
  • Started deprecation cycle for trim_zero_rows.
  • Fixed bug occurring when extracting cell_values after sorting.
  • Removed deprecated function vpaginate_table.
  • Added examples and details for sort_at_path.
  • Added split_label to function split_rows_by_multivar and extra_args to function split_cols_by_multivar.
  • Added split_rows_by_multivar documentation.

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1

rtables v0.6.0 - CRAN

Choose a tag to compare

@gmbecker gmbecker released this 02 Mar 23:49
f2000ea

Version 0.6.0 of rtables as released to CRAN

rtables v0.5.1 - CRAN

Choose a tag to compare

@gmbecker gmbecker released this 21 May 23:32

v0.5.1 on CRAN

rtables v0.5.0 - CRAN

Choose a tag to compare

@gmbecker gmbecker released this 01 Apr 05:13
v0.5.0 CRAN release

rtables v0.4.1 - Non-CRAN bookkeeping release

Choose a tag to compare

@gmbecker gmbecker released this 25 Jan 00:34

Internal release before large refactoring release lands on CRAN as 0.5.0.