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

Refactoring of heading component #239

Merged
merged 68 commits into from
Jul 11, 2019
Merged

Conversation

rich-iannone
Copy link
Member

This builds upon the earlier refactoring effort, which made available several new utility functions for composing strings. Additional utility functions are included here to help with gathering footnote glyphs and custom styles for cells.

Templating with glue is used here to compose the HTML and LaTeX fragments (along with paste_between()). Some improvements to the CSS classes for the title and subtitle were also made.

@rich-iannone rich-iannone changed the title Refactor of heading component Refactoring of heading component Apr 1, 2019
@rich-iannone rich-iannone marked this pull request as ready for review April 1, 2019 20:39
@rich-iannone rich-iannone requested a review from jcheng5 April 1, 2019 20:40
@jcheng5
Copy link
Member

jcheng5 commented Apr 8, 2019

I'm going to need you to walk me through this one

@@ -318,3 +318,46 @@ is_adjacent_separate <- function(group_1,

return(TRUE)
}

str_catalog <- function(item_vector,
Copy link
Collaborator

Choose a reason for hiding this comment

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

where is this function used?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used in the validate_style_in() function (and I'm thinking of using it elsewhere).

Copy link
Collaborator

@schloerke schloerke left a comment

Choose a reason for hiding this comment

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

see comments. They are quick changes

@@ -243,30 +243,28 @@ add_summary_location_row <- function(loc,
if (df_type == "footnotes_df") {

attr(data, df_type) <-
Copy link
Collaborator

Choose a reason for hiding this comment

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

Later, add_location_row_* methods might want to return data. (Move the attr(data, df_type) inside the function)

Copy link
Member Author

Choose a reason for hiding this comment

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

This would be a nice change. Assigning to attr(data, ...) sometimes is inconsistent.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just made this an issue: #315

@schloerke schloerke self-requested a review July 11, 2019 14:27
@rich-iannone rich-iannone merged commit 2806537 into master Jul 11, 2019
@rich-iannone rich-iannone deleted the refactor-heading-component branch July 11, 2019 14:37
rich-iannone added a commit that referenced this pull request Jul 11, 2019
* master:
  Refactoring of heading component (#239)
  Use `sass` package from CRAN (not GitHub) (#313)
rich-iannone added a commit that referenced this pull request Jul 11, 2019
* master:
  Refactoring of heading component (#239)
  Use `sass` package from CRAN (not GitHub) (#313)
rich-iannone added a commit that referenced this pull request Jul 11, 2019
* master:
  Refactoring of heading component (#239)
  Use `sass` package from CRAN (not GitHub) (#313)
  Add options related to the table <div> (#285)
rich-iannone added a commit that referenced this pull request Jul 12, 2019
* master:
  Add the `cells_stubhead_label()` location helper (#276)
  Refactoring of the `tab_options()` function (#288)
  Add the `path` argument to `gtsave()` (#290)
  Refactoring of heading component (#239)
  Use `sass` package from CRAN (not GitHub) (#313)
  Add options related to the table <div> (#285)
  Have the table ID be settable, random, or absent in `gt()` (#286)
rich-iannone added a commit that referenced this pull request Jul 15, 2019
* master:
  Add the `cells_stubhead_label()` location helper (#276)
  Refactoring of the `tab_options()` function (#288)
  Add the `path` argument to `gtsave()` (#290)
  Refactoring of heading component (#239)
  Use `sass` package from CRAN (not GitHub) (#313)
  Add options related to the table <div> (#285)
  Have the table ID be settable, random, or absent in `gt()` (#286)
rich-iannone added a commit that referenced this pull request Jul 16, 2019
* master:
  Add the `cells_stubhead_label()` location helper (#276)
  Refactoring of the `tab_options()` function (#288)
  Add the `path` argument to `gtsave()` (#290)
  Refactoring of heading component (#239)
  Use `sass` package from CRAN (not GitHub) (#313)
  Add options related to the table <div> (#285)
rich-iannone added a commit that referenced this pull request Jul 16, 2019
* master:
  Add the `cells_stubhead_label()` location helper (#276)
  Refactoring of the `tab_options()` function (#288)
  Add the `path` argument to `gtsave()` (#290)
  Refactoring of heading component (#239)
  Use `sass` package from CRAN (not GitHub) (#313)
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.

3 participants