Skip to content

Commit c97cb4c

Browse files
authored
v0.2.2 Release Candidate (#629)
* Update version number * Delete external.css * Update gt_styles_default.scss * Update test-util_functions.R * Update NEWS.md * Update gt_styles_default.scss * Update test-util_functions.R
1 parent 6058358 commit c97cb4c

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Type: Package
22
Package: gt
3-
Version: 0.2.1
3+
Version: 0.2.2
44
Title: Easily Create Presentation-Ready Display Tables
55
Description: Build display tables from tabular data with an easy-to-use set of
66
functions. With its progressive approach, we can construct display tables

NEWS.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
1-
# gt (unreleased)
1+
# gt 0.2.2
2+
3+
## New features
4+
5+
* The new `opt_table_font()` function makes it possible to define a custom font for the entire **gt** table. The standard fallback fonts are still set by default but the font defined here will take precedence. You could still have different fonts in select locations in the table, and for that you would need to use `tab_style()` in conjunction with the `cell_text()` helper function. The new `google_font()` helper function provides an option for supplying a font available at the Google Fonts service (this is in addition to using system fonts in the `font` argument). Using the `info_google_fonts()` function will provide a table with a set of helpful font recommendations from the *Google Fonts* catalog. The new `default_fonts()` functions provides a helpful vector of system fallback fonts which works well when defining a vector of fonts. (#591)
6+
7+
* The new `opt_css()` function makes allows for the addition of custom CSS to a **gt** table. This CSS will be added after the compiled CSS that **gt** generates automatically when the `gt_tbl` object is transformed to an HTML output table. You can supply `css` as a vector of lines or as a single string. The `css()` function has been re-exported from **htmltools** to make it easier to build CSS style declarations. (Also #591)
8+
9+
* Setting the widths of table columns is now easier and more dependable with `cols_width()`. Widths can be expressed in units of pixels (easily set by use of the `px()` helper function), as percentages (where the `pct()` helper function is useful), or a mixture of the two. The function takes into consideration whether an overall table width has been provided with `tab_options(table.width = ...)`. Providing pixel widths for all columns serves to override any table width defined (yielding columns with the exact widths specified). (#561)
210

311
* There are new options for numeric formatting: (1) using significant figures (with `n_sigfig` in `fmt_number`), and (2) the ability to retain/drop trailing decimal marks (with `drop_trailing_dec_mark` in `fmt_number()`, `fmt_percent()`, and `fmt_currency()`). Thank you @drolejoel for the suggestion in #535! (#546).
412

513
* The new `scale_values` argument for `fmt_percent()` makes it easy to use values that are already scaled (and just require the percent mark). Thank you @djohn215 for the suggestion in #559. (#565)
614

15+
* Font weights expressed as numeric values (e.g., `400`, `600`, etc.) in `cell_text()`'s `weight` argument now works properly. (#591)
16+
17+
## Minor improvements and bug fixes
18+
19+
* The `data_color()` function has been rewritten to improve performance (#543). (#576)
20+
721
* Restore the ability to have row striping in stub cells (with `tab_option()`'s `row.striping.include_stub = TRUE`). Thanks @gergness for creating PR #537, which prompted this final fix. (#564)
822

9-
# gt 0.2.1
23+
# gt 0.2.1 (2020-05-26)
1024

1125
* `summary_rows()` and `grand_summary_rows()` no longer incorrectly calculate summary values in cases where rows aren't already sorted by group (#556).
1226

inst/css/external.css

-11
This file was deleted.

0 commit comments

Comments
 (0)