Add guided advanced vignettes#1091
Conversation
Signed-off-by: Gabe Becker <gabembecker@gmail.com>
| 'tt_from_df.R' | ||
| 'validate_table_struct.R' | ||
| 'zzz_constants.R' | ||
| Config/roxygen2/version: 8.0.0 |
There was a problem hiding this comment.
Thats weird, as it wasn't manually added, but I'll look into this
| #' @rdname int_methods | ||
| #' @export | ||
| setMethod("obj_na_str", "VTableNodeInfo", function(obj) attr(obj, "row_na_strs", exact = TRUE)) |
There was a problem hiding this comment.
Duplicated with the above. I guess it should be:
setMethod("obj_na_str", "RowsVerticalSection", function(obj) attr(obj, "row_na_strs", exact = TRUE))
There was a problem hiding this comment.
correct nice catch. thanks
| #' @exportMethod cell_values | ||
| setMethod( | ||
| "cell_values", "RowsVerticalSection", | ||
| function(tt, rowpath, colpath = NULL, omit_labrows = TRUE) {} |
There was a problem hiding this comment.
This would return NULL. why should it? Could you add a comment and maybe a more explicit NULL value?
There was a problem hiding this comment.
This is missing code not intended to return NULL so I'll either remove it (if its not needed) or fix it.
Nice catch thanks.
| #' @export | ||
| c.RowsVerticalSection <- function(...) { | ||
| lst <- list(...) | ||
| if (!all(sapply(lst, function(x) inherits(x, "RowsVerticalSection")))) { |
There was a problem hiding this comment.
I would use vapply(lst, inherits, logical(1), "RowsVerticalSection") as it is a expected logical
| ARD | ||
| ard | ||
| ARDs | ||
| args |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 pre and post in make_split_fun, others do look like variable names though
| ) | ||
| } | ||
| attr(obj, "indent_mods") <- as.integer(value) | ||
| attr(obj, "indent_mods") <- rep(as.integer(value), length.out = length(obj)) |
There was a problem hiding this comment.
This is probably the right behavior, but it should be documented in NEWS since it changes the semantics of the setter
There was a problem hiding this comment.
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
Melkiades
left a comment
There was a problem hiding this comment.
Thanks Gabe for the PR!! I added a couple of comments ^^
In general, I would suggest to add link to the issue and add the NEWS file when ready to review. If possible I would do bug fixes and docs improvement in different PRs, but it is not an issue
|
Sorry @Melkiades this probably should have been marked as a draft, but thanks for going through it and I will go through all your comments and respond to each (and likely make most suggested changes) |
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Gabe Becker <gabembecker@gmail.com>
Code Coverage SummaryDiff against mainResults for commit: ddde119 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 30 suites 1m 57s ⏱️ Results for commit ddde119. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Results for commit 5809237 ♻️ This comment has been updated with latest results. |
|
superceded by #1093 I believe all of the review comments here have been addressed with the current state there. |
and needed fixes/utilities for them