-
Notifications
You must be signed in to change notification settings - Fork 213
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
Conversation
I'm going to need you to walk me through this one |
* master: Use `sass` package from CRAN (not GitHub) (#313)
@@ -318,3 +318,46 @@ is_adjacent_separate <- function(group_1, | |||
|
|||
return(TRUE) | |||
} | |||
|
|||
str_catalog <- function(item_vector, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
There was a problem hiding this 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) <- |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
* 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)
* 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)
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 withpaste_between()
). Some improvements to the CSS classes for the title and subtitle were also made.