-
Notifications
You must be signed in to change notification settings - Fork 52
Add guided advanced vignettes #1091
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
Changes from all commits
c453a00
4eb567c
90debaa
4955b91
f3d65c7
0019b5c
4bdc697
77876f5
ddde119
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 |
|---|---|---|
|
|
@@ -105,3 +105,4 @@ Collate: | |
| 'tt_from_df.R' | ||
| 'validate_table_struct.R' | ||
| 'zzz_constants.R' | ||
| RoxygenNote: 7.3.3 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -999,6 +999,10 @@ setGeneric("row_cells", function(obj) standardGeneric("row_cells")) | |
| #' @exportMethod row_cells | ||
| setMethod("row_cells", "TableRow", function(obj) obj@leaf_value) | ||
|
|
||
| #' @rdname row_accessors | ||
| #' @exportMethod row_cells | ||
| setMethod("row_cells", "RowsVerticalSection", function(obj) as(obj, "list", strict = TRUE)) | ||
|
|
||
| #' @rdname row_accessors | ||
| setGeneric("row_cells<-", function(obj, value) standardGeneric("row_cells<-")) | ||
|
|
||
|
|
@@ -1017,7 +1021,6 @@ setGeneric("row_values", function(obj) standardGeneric("row_values")) | |
| #' @exportMethod row_values | ||
| setMethod("row_values", "TableRow", function(obj) rawvalues(obj@leaf_value)) | ||
|
|
||
|
|
||
| #' @rdname row_accessors | ||
| #' @exportMethod row_values<- | ||
| setGeneric("row_values<-", function(obj, value) standardGeneric("row_values<-")) | ||
|
|
@@ -1153,13 +1156,18 @@ setMethod("obj_format", "CellValue", function(obj) attr(obj, "format", exact = T | |
| #' @export | ||
| setMethod("obj_format", "Split", function(obj) obj@split_format) | ||
|
|
||
| #' @rdname formatters_methods | ||
| #' @export | ||
| setMethod("obj_format", "RowsVerticalSection", function(obj) attr(obj, "row_formats", exact = TRUE)) | ||
|
|
||
| #' @rdname formatters_methods | ||
| #' @export | ||
| setMethod("obj_format<-", "VTableNodeInfo", function(obj, value) { | ||
| obj@format <- value | ||
| obj | ||
| }) | ||
|
|
||
|
|
||
| #' @rdname formatters_methods | ||
| #' @export | ||
| setMethod("obj_format<-", "Split", function(obj, value) { | ||
|
|
@@ -1174,13 +1182,27 @@ setMethod("obj_format<-", "CellValue", function(obj, value) { | |
| obj | ||
| }) | ||
|
|
||
| #' @rdname formatters_methods | ||
| #' @export | ||
| setMethod("obj_format<-", "RowsVerticalSection", function(obj, value) { | ||
| attr(obj, "row_formats") <- value | ||
| obj | ||
| }) | ||
|
|
||
| #' @rdname int_methods | ||
| #' @export | ||
| setMethod("obj_na_str<-", "CellValue", function(obj, value) { | ||
| attr(obj, "format_na_str") <- value | ||
| obj | ||
| }) | ||
|
|
||
| #' @rdname int_methods | ||
| #' @export | ||
| setMethod("obj_na_str<-", "RowsVerticalSection", function(obj, value) { | ||
| attr(obj, "row_na_strs") <- value | ||
| obj | ||
| }) | ||
|
|
||
| #' @rdname int_methods | ||
| #' @export | ||
| setMethod("obj_na_str<-", "VTableNodeInfo", function(obj, value) { | ||
|
|
@@ -1199,6 +1221,10 @@ setMethod("obj_na_str<-", "Split", function(obj, value) { | |
| #' @export | ||
| setMethod("obj_na_str", "VTableNodeInfo", function(obj) obj@na_str) | ||
|
|
||
| #' @rdname int_methods | ||
| #' @export | ||
| setMethod("obj_na_str", "RowsVerticalSection", function(obj) attr(obj, "row_na_strs", exact = TRUE)) | ||
|
|
||
| #' @rdname formatters_methods | ||
| #' @export | ||
| setMethod("obj_na_str", "Split", function(obj) obj@split_na_str) | ||
|
|
@@ -1678,7 +1704,7 @@ setMethod( | |
| "must have length 1 or the number of rows" | ||
| ) | ||
| } | ||
| attr(obj, "indent_mods") <- as.integer(value) | ||
| attr(obj, "indent_mods") <- rep(as.integer(value), length.out = length(obj)) | ||
|
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. This is probably the right behavior, but it should be documented in NEWS since it changes the semantics of the setter
Collaborator
Author
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. this is a bugfix rather than a semantics change because if you give it a single value something down stream (printing, I think) breaks, but still worth putting in the NEWS file |
||
| obj | ||
|
|
||
| ## obj@indent_mods <- value | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,66 +1,110 @@ | ||
| Abinaya | ||
| acknowledgements | ||
| AE | ||
| AEs | ||
| afun | ||
| afuns | ||
| allcols | ||
| amongst | ||
| ARD | ||
| ard | ||
| ARDs | ||
| args | ||
|
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. 68 new words is a lot. Some look like they could be R object names or code fragments that should be in backticks in the vignettes rather than whitelisted (e.g., afun, afuns, bbbs, splfun). Worth checking if wrapping them in backticks in the Rmd files removes the need for the wordlist entries
Collaborator
Author
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. will look into this,s ome of those are real (bbbs stands for Behavioral Building Blocks, which is a term I use heavily in one of the vignettes to refer to the functions we pass to |
||
| asvec | ||
| aut | ||
| avar | ||
| biomarker | ||
| BMEASIFL | ||
| Bov | ||
| Bov<U+00E9> | ||
| Carreras | ||
| cbind | ||
| CellValue | ||
| charset | ||
| Cheatsheet | ||
| Chohan | ||
| clayout | ||
| colcount | ||
| colinfo | ||
| coltree | ||
| colvars | ||
| combinatorial | ||
| compat | ||
| constr | ||
| coxreg | ||
| cran | ||
| CRAN's | ||
| cre | ||
| ctb | ||
| customizations | ||
| Davide | ||
| de | ||
| decrementing | ||
| degen | ||
| desc | ||
| Dev | ||
| dev | ||
| df | ||
| dg | ||
| differnt | ||
| dimensioned | ||
| disp | ||
| divs | ||
| dplyr | ||
| elemtable | ||
| emph | ||
| expr | ||
| facetted | ||
| facetting | ||
| FFFL | ||
| fnd | ||
| formatter | ||
| forseeable | ||
| funciton | ||
| funder | ||
| funs | ||
| Garolini | ||
| getter | ||
| getters | ||
| github | ||
| Godwin | ||
| Heng | ||
| Hoffmann | ||
| Hofstaedter | ||
| href | ||
| https | ||
| ie | ||
| indicies | ||
| ing | ||
| initializer | ||
| insightsengineering | ||
| io | ||
| kate | ||
| Kelkhoff | ||
| knitr | ||
| labelled | ||
| Layouting | ||
| layouting | ||
| Lewandowski | ||
| lyt | ||
| mandatorily | ||
| Maximo | ||
| modelled | ||
| Modelling | ||
| monospace | ||
| Mordig | ||
| multivar | ||
| multivariable | ||
| na | ||
| navbar | ||
| nesttemplate | ||
| NSE | ||
| ORCID | ||
| orderable | ||
| orthogonally | ||
| overrided | ||
| oversimplifaction | ||
| params | ||
| Paszty | ||
| pathability | ||
| pathable | ||
|
|
@@ -69,27 +113,41 @@ Pathing | |
| pathing | ||
| Pharma | ||
| Phuse | ||
| pkgdown | ||
| postfix | ||
| postprocessing | ||
| Pre | ||
| pre | ||
| Qi | ||
| qtable | ||
| rcell | ||
| reindexed | ||
| repped | ||
| reqs | ||
| responder | ||
| Resync | ||
| reusability | ||
| rheader | ||
| rmarkdown | ||
| roadmap | ||
| RowsVerticalSection | ||
| rrow | ||
| rrowl | ||
| RStudio | ||
| rtable | ||
| rtablel | ||
| rtables | ||
| Rua | ||
| Saban | ||
| Saban<U+00E9>s | ||
| Saibah | ||
| sep | ||
| SKELETOMUSCULAR | ||
| sortable | ||
| spacelab | ||
| spl | ||
| Stoilova | ||
| struct | ||
| STUDYID | ||
| subseting | ||
| subsplits | ||
|
|
@@ -100,10 +158,15 @@ Subtables | |
| subtables | ||
| summarization | ||
| tableone | ||
| TableTree | ||
| Tadeusz | ||
| toc | ||
| todo | ||
| topleft | ||
| tostring | ||
| traversable | ||
| truetype | ||
| tt | ||
| unaggregated | ||
| unicode | ||
| uniqify | ||
|
|
@@ -115,9 +178,15 @@ Unstratified | |
| unstratified | ||
| useR | ||
| ValueWrapper | ||
| VignetteEncoding | ||
| VignetteEngine | ||
| VignetteIndexEntry | ||
| visibilities | ||
| visibilty | ||
| VTableNodeInfo | ||
| VTableTree | ||
| Waddell | ||
| wpcts | ||
| xtable | ||
| Yogasekaram | ||
| Yung | ||
|
|
||
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.
I would use
vapply(lst, inherits, logical(1), "RowsVerticalSection")as it is a expected logical