-
Notifications
You must be signed in to change notification settings - Fork 52
1092 add guided advanced #1093
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
base: main
Are you sure you want to change the base?
1092 add guided advanced #1093
Changes from all commits
c11fa2a
7bea7c6
9ca6053
d76b167
e58e59b
756499f
8654a7a
b6a59a3
f59700e
eb24bd0
4093d03
ddfd1f5
1abc270
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2182,6 +2182,43 @@ print.RowsVerticalSection <- function(x, ...) { | |
| invisible(x) | ||
| } | ||
|
|
||
| #' Combine RowsVerticalSection objects | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing blank line after title, so title and description end up the same text in the .Rd |
||
| #' Combine two or more RowsVerticalSection objects (as returned | ||
| #' by [in_rows()]) into a single object | ||
| #' | ||
| #' @param ... RowsVerticalSection objects | ||
| #' @returns A single RowsVerticalSection object containing all | ||
| #' row sections from the objects passed to `...` | ||
| #' @export | ||
| c.RowsVerticalSection <- function(...) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no tests for |
||
| lst <- list(...) | ||
| if (!all(vapply(lst, function(x) inherits(x, "RowsVerticalSection"), TRUE))) { | ||
| stop("Cannot use c() to combine RowsVerticalSection objects with objects of other classes") | ||
| } | ||
|
|
||
| out <- NextMethod(generic = "c") | ||
| out <- RowsVerticalSection( | ||
| out, | ||
| names = comb_attr_w_dflt(lst, "row_names"), | ||
| labels = comb_attr_w_dflt(lst, "row_labels"), | ||
| indent_mods = comb_attr_w_dflt(lst, "indent_mods", 0L), | ||
| formats = comb_attr_w_dflt(lst, "row_formats", "xx"), | ||
| footnotes = comb_attr_w_dflt(lst, "row_footnotes"), | ||
| format_na_strs = comb_attr_w_dflt(lst, "row_na_strs", NA_character_) | ||
| ) | ||
| out | ||
| } | ||
|
|
||
| comb_attr_w_dflt <- function(lst, attrname, dflt = NULL) { | ||
| unlist( | ||
| lapply(lst, function(x) { | ||
| attr(x, attrname, exact = TRUE) %||% rep(dflt, length(x)) | ||
| }), | ||
| recursive = FALSE, | ||
| use.names = FALSE | ||
| ) | ||
| } | ||
|
|
||
| #### Empty default objects to avoid repeated calls | ||
| ## EmptyColInfo <- InstantiatedColumnInfo() | ||
| ## EmptyElTable <- ElementaryTable() | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 is
indent_mod<-, notobj_na_str<-.obj_na_str<-does not recycle (checked, stays length 1)