Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone authored Apr 16, 2024
2 parents 6fc6a90 + c3d2b80 commit 61c4bd9
Show file tree
Hide file tree
Showing 228 changed files with 9,650 additions and 2,557 deletions.
1 change: 0 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
^gt\.Rproj$
^_pkgdown\.yml$
^codecov\.yml$
^README\.Rmd$
^README\.md$
^LICENSE\.md$
^CITATION\.cff$
Expand Down
4 changes: 2 additions & 2 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Supported Versions

Use this section to tell people about which versions of your project are
The following provides information on the versions of gt that are
currently being supported with security updates.

| Version | Supported |
| ---------- | ------------------ |
| >= 0.9.0 | :white_check_mark: |
| >= 0.10.1 | :white_check_mark: |

## Reporting a Vulnerability

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
- {os: windows-latest, r: '4.2'}
# # use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}
# # Use 3.6 to trigger usage of RTools35
- {os: windows-latest, r: '3.6'}

- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
Expand All @@ -41,7 +39,8 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- name: Check out repository
uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ on:
schedule:
- cron: '0 23 * * *'

name: build-quarto-gt-examples-site
name: netlify-quarto-gt-examples-site

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
# these all default to 'true'
enable-pull-request-comment: false
enable-commit-comment: true
enable-commit-status: true
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/connect-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
on:
schedule:
- cron: '15 23 * * *'

name: connect-quarto-gt-examples-site

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release

- name: Print Quarto version
run: |
quarto --version
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2'
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
gt
shiny
tidyverse
dplyr
tidyr
ggplot2
lubridate
paletteer
janitor
rsconnect
any::sessioninfo
dependencies: '"hard"'

- name: Install package
run: R CMD INSTALL .

- name: Generate Quarto files for the website
run: |
Rscript -e 'gt:::write_gt_examples_qmd_files()'
- name: Build Quarto site
run: |
quarto render gt_qmd_examples
- name: Publish to Connect
uses: quarto-dev/quarto-actions/publish@v2
with:
target: connect
path: gt_qmd_examples
render: false
CONNECT_SERVER: ${{ secrets.CONNECT_SERVER }}
CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
3 changes: 2 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
GITHUB_PAT: ${{ secrets.GHA_PAT }}

steps:
- uses: actions/checkout@v3
- name: Check out repository
uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- name: Check out repository
uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ docs
*.html
*.qmd
/*.docx
tests/testthat/Rplots.pdf
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ message: 'If you wish to cite the "gt" package use:'
type: software
license: MIT
title: 'gt: Easily Create Presentation-Ready Display Tables'
version: 0.10.0
version: 0.10.1
abstract: Build display tables from tabular data with an easy-to-use set of functions.
With its progressive approach, we can construct display tables with a cohesive set
of table parts. Table values can be formatted using any of the included formatting
Expand Down
12 changes: 10 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Package
Package: gt
Version: 0.10.0.9000
Version: 0.10.1.9000
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 All @@ -21,6 +21,8 @@ Authors@R: c(
comment = c(ORCID = "0000-0002-4191-6301")),
person("JooYoung", "Seo", , "jseo1005@illinois.edu", "aut",
comment = c(ORCID = "0000-0002-4064-6012")),
person("Ken", "Brevoort", , "ken@brevoort.com", "aut",
comment = c(ORCID = "0000-0002-4001-8358")),
person("Posit Software, PBC", role = c("cph", "fnd"))
)
License: MIT + file LICENSE
Expand Down Expand Up @@ -58,6 +60,9 @@ Suggests:
digest (>= 0.6.31),
fontawesome (>= 0.5.2),
ggplot2,
grid,
gtable,
katex (>= 1.4.1),
knitr,
lubridate,
magick,
Expand All @@ -68,7 +73,8 @@ Suggests:
shiny (>= 1.7.4),
testthat (>= 3.1.9),
tidyr,
webshot2 (>= 0.1.0)
webshot2 (>= 0.1.0),
withr
Roxygen: list(markdown = TRUE)
Collate:
'as_data_frame.R'
Expand Down Expand Up @@ -116,6 +122,7 @@ Collate:
'opts.R'
'print.R'
'reexports.R'
'render_as_gtable.R'
'render_as_html.R'
'render_as_i_html.R'
'resolver.R'
Expand All @@ -136,6 +143,7 @@ Collate:
'utils_pipe.R'
'utils_plots.R'
'utils_render_common.R'
'utils_render_grid.R'
'utils_render_html.R'
'utils_render_latex.R'
'utils_render_rtf.R'
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2018-2023
COPYRIGHT HOLDER: gt authors
YEAR: 2018-2024
COPYRIGHT HOLDER: Posit Software, PBC
37 changes: 17 additions & 20 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
The MIT License (MIT)
# MIT License

Copyright (c) 2018-2023 gt authors
Copyright (c) 2018-2024 Posit Software, PBC

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand

S3method(as.data.frame,gt_tbl)
S3method(plot,gt_gtable)
S3method(print,gt_group)
S3method(print,gt_tbl)
S3method(print,rtf_text)
Expand Down
42 changes: 40 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,46 @@
# gt (development version)

* The performance of rendering bigger tables as HTML has been improved and is now up to 3 times faster than before (@mgirlich, #1470).
* PDF output now allows the font size of a table to be set using the table.font.size parameter in the tab_options function (#1472). The font sizes of individual table cells (including those in the body, stubs, column headings, etc.) can be set using tab_style function. Several other options specified in tab_style are now reflected in PDF output.

* `gtsave()` now returns the file path invisibly instead of `TRUE` (@olivroy, #1478).
* `data_color()` throws a more informative error if a calculation failed (@olivroy, #1373).

* `gtsave()` saves correctly to .rtf if using `cols_label()` and `summary_rows()` or `grand_summary_rows()` (@olivroy, #1233)

# gt 0.10.1

## Improvements to nanoplots

* Box plots can now be generated via `cols_nanoplot()` by using `plot_type = "boxplot"`. These plots are laid out horizontally and will, by default, share the same plot axis across rows. (#1527)

* We can now have single line bar plots generated through `cols_nanoplot()`. If the plot_type is set to `"bar"` and single values are found, then horizontal bars will be generated and will be comparable across rows. (#1514, #1515, #1519)

* The `autohide` argument was added to the `cols_nanoplot()` function so that columns containing input data for nanoplots could be conveniently hidden from final presentation. (#1533)

* Added option (the `data_area_fill_color` arg in `nanoplot_options()`) to change fill color of nanoplot data area for line-type plots (#1521). (#1534)

## Minor improvements and bug fixes

* The performance of rendering bigger tables as HTML has been improved and is now up to three times faster than before. (#1470, thanks @mgirlich)

* Introduced a small performance improvement by no longer calling `utils::packageVersion()` internally (#1524). (#1525, thank you @slodge)

* Code and test refactoring was performed to generally improve performance and code readability. (#1480, thanks @olivroy)
* The `gtsave()` function now returns the file path invisibly instead of `TRUE`. (#1478, thank you @olivroy)

* Most functions now produce better error messages if not provided with a `gt_tbl` object. (#1504, c/o @olivroy)

* The URL formatting through `fmt_url()` has been improved by preventing link text breaking across lines (#1509). (#1537)
* We now remove some unnecessary newlines in the HTML text produced by `as_raw_html()`, which caused an issue when integrating **gt** tables into **blastula** email messages (#1506). (#1520)

* The `tab_spanner_delim()` now lets you use `delim` strings longer than a single character (#1469). (#1513)

* Fix for footnotes in LaTeX tables where no footnote marks are to be added; this previously showed `"NA"` as the mark in the footer area but this is no longer displayed (#1416). (#1512, thanks @kbrevoort)

* LaTeX tables can now have their overall width specified (#119, #329). (#1495, thank you @kbrevoort)

* Fix issue where a `cols_width()` specification involving percentage values fails for LaTeX tables (#1465). (#1495, thanks again @kbrevoort!)

* Several documentation fixes were made to address inconsistencies and improve clarity. (#1491)

# gt 0.10.0

Expand Down
2 changes: 1 addition & 1 deletion R/as_data_frame.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# This file is part of the 'rstudio/gt' project.
#
# Copyright (c) 2018-2023 gt authors
# Copyright (c) 2018-2024 gt authors
#
# For full copyright and license information, please look at
# https://gt.rstudio.com/LICENSE.html
Expand Down
2 changes: 1 addition & 1 deletion R/build_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# This file is part of the 'rstudio/gt' project.
#
# Copyright (c) 2018-2023 gt authors
# Copyright (c) 2018-2024 gt authors
#
# For full copyright and license information, please look at
# https://gt.rstudio.com/LICENSE.html
Expand Down
2 changes: 1 addition & 1 deletion R/compile_scss.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# This file is part of the 'rstudio/gt' project.
#
# Copyright (c) 2018-2023 gt authors
# Copyright (c) 2018-2024 gt authors
#
# For full copyright and license information, please look at
# https://gt.rstudio.com/LICENSE.html
Expand Down
Loading

0 comments on commit 61c4bd9

Please sign in to comment.