Conversation
R/watermark_decorator.R
Outdated
| output_name <- gridify::gridify( | ||
| object = cowplot::as_grob(output_name), | ||
| layout = gridify_layout | ||
| ) %>% |
There was a problem hiding this comment.
Let's not use %>% in the decorators if we don't have to do it. There's |> which is a sufficient replacement here
R/watermark_decorator.R
Outdated
| object = cowplot::as_grob(output_name), | ||
| layout = gridify_layout | ||
| ) %>% | ||
| set_cell("watermark", watermark_text) |
There was a problem hiding this comment.
set_cell is from gridify...added package reference
R/watermark_decorator.R
Outdated
| res <- within( | ||
| res, | ||
| { | ||
| watermark_text <- txtWatermark |
There was a problem hiding this comment.
I fail to see the point of this line
There was a problem hiding this comment.
Removed redundant code
R/watermark_decorator.R
Outdated
| #' @param watermark_text (`character(1)`) text to display for the watermark | ||
| #' @param font_size (`character(1)`) font size for the watermark text |
There was a problem hiding this comment.
| #' @param watermark_text (`character(1)`) text to display for the watermark | |
| #' @param font_size (`character(1)`) font size for the watermark text | |
| #' @param watermark_text (`character(1)`) text to display for the watermark. | |
| #' @param font_size (`character(1)`) font size for the watermark text. |
R/watermark_decorator.R
Outdated
| #' @details The module creates a UI with textInput for specifying watermark text and | ||
| #' font size. |
There was a problem hiding this comment.
| #' @details The module creates a UI with textInput for specifying watermark text and | |
| #' font size. | |
| #' @details The module creates a UI with `textInput` for specifying watermark text and | |
| #' font size. |
R/watermark_decorator.R
Outdated
| #' | ||
| #' @details The module creates a UI with textInput for specifying watermark text and | ||
| #' font size. | ||
| #' the entered watermark text is displayed with a default gridify layout. |
There was a problem hiding this comment.
| #' the entered watermark text is displayed with a default gridify layout. | |
| #' the entered watermark text is displayed with a default `gridify` layout. |
There was a problem hiding this comment.
In case you are wondering why it matters - part of the CI is spell checking the package. Anything inside `` is not spell checked, anything outside is. gridify is not a real word, so it will be flagged by our spell check
There was a problem hiding this comment.
Sure Konrad...made the update
R/watermark_decorator.R
Outdated
| #' font size. | ||
| #' the entered watermark text is displayed with a default gridify layout. | ||
| #' | ||
| #' @import cowplot gridify rtables.officer |
There was a problem hiding this comment.
Why is rtables.officer needed?
There was a problem hiding this comment.
This was needed for the tables. Will remove as we are not enabling this decorator for tables now. Thanks for pointing it out
Code Coverage SummaryDiff against mainResults for commit: 4f0813e Minimum allowed coverage is ♻️ This comment has been updated with latest results |
…e-org/uteals into feature/jgqo373_watermark_decorator
New watermark decorator for plots. Currently we are not supporting rtables