Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squelch warnings from tibble 3.0.0/3.0.1 #557

Merged
merged 6 commits into from May 4, 2020
Merged

Conversation

rich-iannone
Copy link
Member

@rich-iannone rich-iannone commented Apr 23, 2020

The change made removes an unnecessary subsetting operation on a tibble. With the subsetting in place, although it gives an identical result, we get a warning in tibble 3.0.0/3.0.1. See https://cran.r-project.org/web/packages/tibble/vignettes/invariants.html for details (example is df[10, ]).

This PR also addresses a remaining issue with the roxygen dontrun / donttest directive in the gtsave() docs (removes it)

The change is identical in tibble 3.0.0 and we avoid a tibble warning. See https://cran.r-project.org/web/packages/tibble/vignettes/invariants.html for details (example is `df[10, ]`).
Copy link
Member

@jcheng5 jcheng5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use character(0), et al. instead of NA

And roll back the requirement for the latest version of tibble.
This solution looks pretty nice in the internal help docs and in the pkgdown site (i.e., doesn't add cleanup lines in-between the example calls). Plus it shouldn't be flagged by a CRAN reviewer.
jcheng5
jcheng5 previously approved these changes Apr 27, 2020
@rich-iannone rich-iannone merged commit 26f699a into master May 4, 2020
@rich-iannone rich-iannone deleted the tibble-3.0.0-fix branch May 4, 2020 23:41
rich-iannone added a commit that referenced this pull request May 7, 2020
* master:
  Squelch warnings from tibble 3.0.0/3.0.1 (#557)
rich-iannone added a commit that referenced this pull request Jun 22, 2020
* master:
  Refactor `data_color()` so that it executes faster (#576)
  Update R-CMD-check.yaml (#599)
  Release gt 0.2.1 (#588)
  Ensure that row ordering doesn't affect summary row calculations (#556)
  Update failing example (#586)
  Remove test of scales behaviour
  Squelch warnings from tibble 3.0.0/3.0.1 (#557)
  Bump cache on pkgdown.yaml for GH workflow (#570)
  Update GH Actions workflow for R CMD check (#568)
  Update Description of package to be less confusing (#569)
rich-iannone added a commit that referenced this pull request Jun 22, 2020
* master:
  Fix issues with defining column widths in `cols_width()` (#561)
  Add `scale_values` arg to `fmt_percent()` (#565)
  Restore row striping option in stub cells (`row.striping.include_stub = TRUE`) (#564)
  Refactor `data_color()` so that it executes faster (#576)
  Update R-CMD-check.yaml (#599)
  Release gt 0.2.1 (#588)
  Ensure that row ordering doesn't affect summary row calculations (#556)
  Update failing example (#586)
  Remove test of scales behaviour
  Squelch warnings from tibble 3.0.0/3.0.1 (#557)
  Bump cache on pkgdown.yaml for GH workflow (#570)
  Update GH Actions workflow for R CMD check (#568)
  Update Description of package to be less confusing (#569)
rich-iannone added a commit that referenced this pull request Oct 25, 2020
* master: (30 commits)
  Spanner alignment correction (#662)
  PEN currency fix (#663)
  Fix for `gtsave()` when saving an image and specifying a `path` value (#592)
  Rewrite of RTF building functions and `as_rtf()` (#638)
  v0.2.2 Release Candidate (#629)
  Settable font options (#591)
  Add options for sig figs / inclusion of trailing dec marks (#546)
  Fix issues with defining column widths in `cols_width()` (#561)
  Add `scale_values` arg to `fmt_percent()` (#565)
  Restore row striping option in stub cells (`row.striping.include_stub = TRUE`) (#564)
  Refactor `data_color()` so that it executes faster (#576)
  Update R-CMD-check.yaml (#599)
  Release gt 0.2.1 (#588)
  Ensure that row ordering doesn't affect summary row calculations (#556)
  Update failing example (#586)
  Remove test of scales behaviour
  Squelch warnings from tibble 3.0.0/3.0.1 (#557)
  Bump cache on pkgdown.yaml for GH workflow (#570)
  Update GH Actions workflow for R CMD check (#568)
  Update Description of package to be less confusing (#569)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants