Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rich-iannone
Copy link
Member

This works around saving with htmltools::save_html(), which requires an expanded, absolute path.

Fixes: #496

This works around saving with `htmltools::save_html()`, which requires an expanded, absolute path.
* master:
  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)
@rich-iannone rich-iannone marked this pull request as ready for review October 13, 2020 15:30
@rich-iannone rich-iannone requested a review from jcheng5 October 13, 2020 15:36
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.

Unit tests

@rich-iannone rich-iannone requested a review from jcheng5 October 16, 2020 23:52
# Expect that CSS styles are inlined
(path_4 %>%
readLines()) %>% paste(collapse = "\n") %>%
tidy_grepl("<style>body\\{") %>%
Copy link
Member

@jcheng5 jcheng5 Oct 19, 2020

Choose a reason for hiding this comment

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

Additional test cases (for gtsave_filename):

  1. Relative filename, default path
  2. Relative filename, relative path
  3. Absolute filename, absolute path (ensure path is ignored)
  4. filename starting with ~/, absolute path (ensure path is ignored)

Maybe good to try one with ~ as well.

@rich-iannone rich-iannone requested a review from jcheng5 October 21, 2020 15:35
@jcheng5 jcheng5 merged commit 27a091c into master Oct 23, 2020
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)
  ...
@rich-iannone rich-iannone deleted the path-fix branch October 25, 2020 18:51
rich-iannone added a commit that referenced this pull request Oct 25, 2020
* master:
  Spanner alignment correction (#662)
  PEN currency fix (#663)
  Fix for `gtsave()` when saving an image and specifying a `path` value (#592)
rich-iannone added a commit that referenced this pull request Nov 2, 2020
* master:
  Spanner alignment correction (#662)
  PEN currency fix (#663)
  Fix for `gtsave()` when saving an image and specifying a `path` value (#592)
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.

gtsave() error only for html files and only when you provide path

3 participants