Skip to content

Releases: insightsengineering/formatters

v0.5.9 cran

13 Sep 11:41
2e4807d
Compare
Choose a tag to compare
  • Fixed bug in format_value that caused multiple NA values to be associated with the wrong na_str values.

What's Changed

Full Changelog: v0.5.8...v0.5.9

v0.5.8 cran

19 Jun 16:20
c275f63
Compare
Choose a tag to compare
  • Added TrueType font support to pagination and word-wrapping machinery by @gmbecker.
  • Fixed a bug where col_gap was not correctly taken into account during horizontal pagination (#249) by @gmbecker.

What's Changed

  • Add Truetype support and fix col_gap bug by @gmbecker in #296
  • Fix windows times new roman font name. passes winbuilder forme by @gmbecker in #303
  • update version to 0.5.8, [skip vbump] by @shajoezhu in #304

Full Changelog: v0.5.7...v0.5.8

v0.5.7

29 May 12:19
ec2c5c9
Compare
Choose a tag to compare
  • Added lifecycle badge files for documentation.
  • Fixed a bug causing recursive appending of page number text during pagination.
  • Deprecated width, height and fontsize arguments of export_as_pdf() using lifecycle package.

What's Changed

Full Changelog: v0.5.6...v0.5.7

v0.5.6 cran

15 Apr 07:38
c9ac9b2
Compare
Choose a tag to compare
  • Added "N=xx" format and unit test for it.
  • Added error catch for \r recursive special character.
  • Fixed pagination unexpected counts for rlistings' pagination by removing the manual subsetting workaround and fixing insightsengineering/rlistings#155.
  • Fixed mismatch between pagination and exports regarding the value assigned to parameter max_width. Introduced general handler .handle_max_width for pagination, exports, and toString.
  • Fixed bug in format_value causing a warning for vectors containing both NA and non-NA values.
  • Fixed issue with var_label assignment that needed to be of non-named strings.
  • Included indentation and split rows with their LabelRow assignment in basic_matrix_form.
  • Allowed tables with content rows in the end be exported.
  • Moved new line expansion for decorations from rtables' matrix_form to formatters' constructor MatrixPrintForm so to cover also rlistings.
  • Improved relevant information feedback during pagination.
  • Updated export_as_txt to allow lists of tables/listings as input. This enables listing pagination with pages by parameter.
  • Removed the possibility of setting min_siblings > 0 when dealing with listings. This allows smooth pagination when there are only 2 lines.
  • Removed redundant references to matrix_print_form constructor (now only MatrixPrintForm).

What's Changed

New Contributors

Full Changelog: v0.5.5...v0.5.6

v0.5.5 CRAN

06 Dec 09:42
39377e9
Compare
Choose a tag to compare
  • Applied styler and resolved package lint. Changed default indentation from 4 spaces to 2.
  • Added the possibility of setting a general default using set_default_hsep() that sets up the option getOption("formatters_default_hsep").
  • Allowed section divider between header and table body.
  • Added support for combining duplicate referential footnotes.
  • Migrated export_as_pdf from rtables. Now using paginate_to_mpfs function. Made font_lcpi function internal.
  • Fixed wrapping and section dividers error.
  • Fixed infinite loop in wrap_string that was caused by a bug in stringi::stri_wrap not wrapping small
    strings with dots and spaces correctly.

What's Changed

Full Changelog: v0.5.4...v0.5.5

v0.5.4

19 Oct 07:52
61aa801
Compare
Choose a tag to compare
  • Fixed a bug in paginate_to_mpfs() so that formatting in listings key columns is retained with pagination insightsengineering/rlistings#155.
  • Improved error message for pagination when cpp or lpp is too small in comparison to the column or row widths.
  • Added full support of newline characters in any part of rtables objects.
  • Modified default vertical alignment for top left information to bottom.
  • Rework of wrap_string so to allow space characters to be used and wrapped.

What's Changed

New Contributors

Full Changelog: v0.5.3...v0.5.4

v0.5.3

03 Oct 13:41
062b0ba
Compare
Choose a tag to compare
  • Decimal alignment now throws informative error if scientific notation is used.
  • Specified minimal version of package dependencies.
  • Updated hex sticker logo.

What's Changed

New Contributors

Full Changelog: v0.5.2...v0.5.3

v0.5.2 CRAN

25 Aug 11:42
c291a25
Compare
Choose a tag to compare
  • paginate_to_mpfs can handle single column tables and listings.
  • Added decimal alignment support with decimal, dec_right, and dec_left.
  • Updated export_as_txt to pass rep_cols argument to pagination function.
  • Added list_valid_aligns() that lists the available alignments.
  • Set default values for na_str and align to NULL in the format configuration function fmt_config.
  • Fixed a bug that threw warning when prov_footer length is greater than 1 insightsengineering/rtables#705.

What's Changed

New Contributors

Full Changelog: v0.5.1...v0.5.2

v0.5.1

19 Jul 04:57
c9649d4
Compare
Choose a tag to compare
  • Updated export_as_txt to print split label when using page_by with only one level.
  • Reduced the amount of spelling issues.
  • New generic getter and setter for align (obj_align and obj_align<-).
  • New fmt_config class to bundle together format, na_str, and align instructions.
  • Reverting default for alignment (from NULL to center) and na_str
    from NULL to "NA". This affects only rlistings, where the new default takes effect.

What's Changed

  • rename test file to testthat.R by @gmbecker in #158
  • Update workflows by @walkowif in #161
  • Fix NEWS version after release [skip vbump] by @edelarua in #164
  • reduce the amount of spelling issues / WORDLIST by @m7pr in #166
  • Workflow propagations by @walkowif in #169
  • Update export_as_txt to print split label when using page_by with one level by @edelarua in #174
  • Create obj_align, fmt_config constructor/class by @edelarua in #176
  • align standard is NULL to be set in rlistings by @Melkiades in #179
  • Revert defaults to avoid NULL assigns before rlistings' PR by @Melkiades in #181
  • updating description, news, change version to 0.5.1, [skip vbump] by @shajoezhu in #177

New Contributors

  • @m7pr made their first contribution in #166

Full Changelog: v0.5.0...v0.5.1

v0.5.0 CRAN

18 May 22:37
7ae3f0f
Compare
Choose a tag to compare
  • fix bug in mpf pagination (and thus export_as_txt) when column labels had newlines (#150, rtables#634)
  • font_size is now 8 consistently across the pagination machinery.
  • When specified, margins are in inches (including the default).
  • Fix off-by-one error in pagination machinery for certain cases.
  • Refined informative messages when pagination is verbose (verbose = TRUE).
  • Referential footnotes with specified (non-number) symbols are now printed once per page regardless of the number of elements on the page they refer to.
  • New export_as_txt function operates now on any object with an applicable matrix_form method (including pagination).
  • New paginate_indices and paginate_to_mpfs functions.
  • New diagnose_pagination function accepts the same arguments as paginate_to_mpfs and returns information about the pagination algorithm outcome at both row and column positions.
  • MatrixPrintForm objects now pay closer attention to referential footnote information than they did in the past.
  • MatrixPrintForm objects infer detailed referential footnote information from their strings element for backward compatibility.
  • Fix to test that failed on old Windows CRAN machine due to imperfect UTF support there.
  • If lpp and cpp in pagination or exporter functions are assigned to NULL, no pagination in the vertical or horizontal direction happens, respectively.
  • The new default of NA_integer_ for lpp and cpp now means those values should be inferred from page size.
  • Added hexSticker logo.

What's Changed

Full Changelog: v0.4.1...v0.5.0