Skip to content

Commit

Permalink
v0.4.0 Release Candidate (#896)
Browse files Browse the repository at this point in the history
* Increment version number to 0.4.0

* Update NEWS.md

* Update DESCRIPTION

* Use `skip_on_cran()` for tests w/ snapshots

* Update .Rbuildignore

* Remove unneeded `inst/extdata` files

* Update test-data_color.R

* Update .Rbuildignore

* Omit test file from building
  • Loading branch information
rich-iannone committed Feb 15, 2022
1 parent 8a30632 commit e521dcf
Show file tree
Hide file tree
Showing 19 changed files with 80 additions and 3,780 deletions.
16 changes: 15 additions & 1 deletion .Rbuildignore
Expand Up @@ -15,4 +15,18 @@ vignettes
man/figures/.*svg$
man/figures/[^m].*png$
tests/gt-examples
index.md
tests/testthat/_snaps
tests/testthat/test-cols_width_rtf.R
tests/testthat/test-data_color.R
tests/testthat/test-fmt_fraction.R
tests/testthat/test-footer.R
tests/testthat/test-group_column_label.R
tests/testthat/test-image.R
tests/testthat/test-l_table_parts.R
tests/testthat/test-location_cells.R
tests/testthat/test-rtf_page_numbering.R
tests/testthat/test-summary_rows.R
tests/testthat/test-summary_rows_latex.R
tests/testthat/test-summary_rows_rtf.R
tests/testthat/test-tab_options.R
tests/testthat/test-table_parts.R
26 changes: 13 additions & 13 deletions DESCRIPTION
@@ -1,6 +1,6 @@
Type: Package
Package: gt
Version: 0.3.1.9000
Version: 0.4.0
Title: Easily Create Presentation-Ready Display Tables
Description: Build display tables from tabular data with an easy-to-use set of
functions. With its progressive approach, we can construct display tables
Expand Down Expand Up @@ -31,18 +31,18 @@ Imports:
bitops (>= 1.0.6),
checkmate (>= 2.0.0),
commonmark (>= 1.7),
dplyr (>= 0.8.5),
fs (>= 1.3.2),
ggplot2 (>= 3.3.0),
glue (>= 1.3.2),
htmltools (>= 0.5.0),
magrittr (>= 1.5),
rlang (>= 0.4.5),
sass (>= 0.1.1),
scales (>= 1.1.0),
stringr (>= 1.3.1),
tibble (>= 3.0.0),
tidyselect (>= 1.0.0)
dplyr (>= 1.0.8),
fs (>= 1.5.2),
ggplot2 (>= 3.3.5),
glue (>= 1.6.1),
htmltools (>= 0.5.2),
magrittr (>= 2.0.2),
rlang (>= 1.0.1),
sass (>= 0.4.0),
scales (>= 1.1.1),
stringr (>= 1.4.0),
tibble (>= 3.1.6),
tidyselect (>= 1.1.1)
Suggests:
covr,
knitr,
Expand Down
30 changes: 28 additions & 2 deletions NEWS.md
@@ -1,12 +1,38 @@
# gt (development version)
# gt 0.4.0

## New features

* We now have the ability to display row group labels as a column in the stub (as an alternative to these grouping labels appearing as header rows). This is made possible with the new option `row_group.as_column` in `tab_options()` (the default keeps the preexisting behavior) (#291). (#855)

* The table footer (which can contain footnotes and source notes) now has numerous layout options in `tab_options()`: `footnotes.multiline`, `footnotes.sep`, `source_notes.multiline`, and `source_notes.sep`. With the `*.multline` options, we can control whether notes span across separate lines (`TRUE`, the default) or are kept together as a paragraph (`FALSE`). For the latter layout option, we can control the separation between consecutive notes with the `*.sep` options (the default is `" "`). The work done here also fixes long-standing issues with footer output in the LaTeX and RTF formats (#593, #833). (#864)

* The `fmt_fraction()` formatter was added, allowing for flexible formatting of numerical values to mixed fractions of configurable accuracy (#402). (#753)

* Added the `opt_horizontal_padding()` and `opt_vertical_padding()` functions to easily expand or contract an HTML table in the horizontal and vertical directions (#868). (#882)

* There is now a `locale` argument in the `gt()` function. If set, formatter functions like `fmt_number()` will automatically use this global locale while formatting. There also remains the the option to override the global locale with any non-`NULL` value set for `locale` within a `fmt_*()` call (#682). (#866)

## Minor improvements and bug fixes

* There is now more flexibility, improved documentation, and more testing/reliability for the date/time formatting functions (`fmt_date()`, `fmt_time()`, and `fmt_datetime()`). Now, `Date` and `POSIXct` columns are allowed to be formatted with these functions. With `fmt_datetime()`, we can even supply a format code for generation of custom dates/times (#612, #775, #800). (#801)

* Footnote marks for HTML tables now have an improved appearance. They are slightly larger, set better against the text they follow, and, asterisks are specially handled such that their sizing is consistent with other marks (#511). (#876)

* Further improving support for color value inputs, **gt** now allows shorthand hexadecimal color values (like `#333`) and the use of the `transparent` CSS color keyword (#839, #856). (#870)

* The rendering of percent signs in HTML output was changed from the problematic HTML entity `%` to simply `%`. This solves issues with tables incorrectly rendering percent signs in some situations (#657, #686). (#871)

* All values supplied within `cells_title()` are now checked more rigorously, erroring and providing actionable messaging when stopping does occur (#424). (#783)

* Added a missing column entry in the documentation for the `gtcars` dataset. Thanks, @luisDVA for providing this fix! (#883)

# gt 0.3.1

## New features

* We now have the `force_sign` argument in several numeric formatting functions (`fmt_number()`, `fmt_integer()`, `fmt_scientific()`, `fmt_engineering()`, `fmt_percent()`, `fmt_currency()`, and `fmt_bytes()`). This makes it possible to force the appearance of the positive sign for positive values (#773). (#793)

* It's now possible to add padding to the column labels and heading locations in HTML tables with two new arguments added to `tab_options()`: `column_labels.padding` and `heading.padding`. Several options already exist for easily changing the vertical padding of certain locations, so, these additions make it possible to fully alter to the padding from top to bottom (without resorting to using CSS) (#770). (#795)
* It's now possible to add padding to the column labels and heading locations in HTML tables with two new arguments added to `tab_options()`: `column_labels.padding` and `heading.padding`. Several options already exist for easily changing the vertical padding of certain locations, so, these additions make it possible to fully alter the padding from top to bottom (without resorting to using CSS) (#770). (#795)

* The `whitespace` argument has been added to `cell_text()` and this provides many options for making whitespace easier to handle in HTML output tables (#714). (#797)

Expand Down
59 changes: 0 additions & 59 deletions inst/extdata/google_axes_tbl.csv

This file was deleted.

0 comments on commit e521dcf

Please sign in to comment.