Skip to content
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

Fix failed pipeline #285

Merged
merged 6 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ repos:
- shinyWidgets
- yaml
- zip
- rlistings
- rtables
- id: spell-check
name: Check spelling with `spelling`
exclude: >
Expand Down
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Suggests:
tinytex,
withr (>= 2.0.0)
VignetteBuilder:
knitr
knitr,
rmarkdown
RdMacros:
lifecycle
Config/Needs/verdepcheck: rstudio/bslib, mllg/checkmate,
Expand Down
2 changes: 1 addition & 1 deletion R/PictureBlock.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PictureBlock <- R6::R6Class( # nolint: object_name_linter.
#' @param content (`ggplot` or `grob` or `trellis`) a picture in this `PictureBlock`
#'
#' @return `self`, invisibly.
#' @examples
#' @examplesIf require("ggplot2") && require("lattice")
#' library(ggplot2)
#' library(lattice)
#'
Expand Down
4 changes: 2 additions & 2 deletions R/Renderer.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Renderer <- R6::R6Class( # nolint: object_name_linter.
#' @details `r global_knitr_details()`
#'
#' @return Character vector constituting `rmarkdown` text (`yaml` header + body), ready to be rendered.
#' @examples
#' @examplesIf require("ggplot2")
#' library(yaml)
#' library(rtables)
#' library(ggplot2)
Expand Down Expand Up @@ -141,7 +141,7 @@ Renderer <- R6::R6Class( # nolint: object_name_linter.
#' @details `r global_knitr_details()`
#'
#' @return `character` path to the output.
#' @examples
#' @examplesIf require("ggplot2")
#' library(yaml)
#' library(ggplot2)
#'
Expand Down
8 changes: 4 additions & 4 deletions R/ReportCard.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ReportCard <- R6::R6Class( # nolint: object_name_linter.
#' @param plot (`ggplot` or `grob` or `trellis`) plot object.
#' @param dim (`numeric(2)`) width and height in pixels.
#' @return `self`, invisibly.
#' @examples
#' @examplesIf require("ggplot2")
#' library(ggplot2)
#'
#' card <- ReportCard$new()$append_plot(
Expand Down Expand Up @@ -132,7 +132,7 @@ ReportCard <- R6::R6Class( # nolint: object_name_linter.
#' @param key (`character(1)`) string specifying the metadata key.
#' @param value value associated with the metadata key.
#' @return `self`, invisibly.
#' @examples
#' @examplesIf require("ggplot2")
#' library(ggplot2)
#'
#' card <- ReportCard$new()$append_text("Some text")$append_plot(
Expand Down Expand Up @@ -172,7 +172,7 @@ ReportCard <- R6::R6Class( # nolint: object_name_linter.
#' @description Convert the `ReportCard` to a list, including content and metadata.
#' @param output_dir (`character`) with a path to the directory where files will be copied.
#' @return (`named list`) a `ReportCard` representation.
#' @examples
#' @examplesIf require("ggplot2")
#' library(ggplot2)
#'
#' card <- ReportCard$new()$append_text("Some text")$append_plot(
Expand Down Expand Up @@ -207,7 +207,7 @@ ReportCard <- R6::R6Class( # nolint: object_name_linter.
#' @param card (`named list`) a `ReportCard` representation.
#' @param output_dir (`character`) with a path to the directory where a file will be copied.
#' @return `self`, invisibly.
#' @examples
#' @examplesIf require("ggplot2")
#' library(ggplot2)
#'
#' card <- ReportCard$new()$append_text("Some text")$append_plot(
Expand Down
6 changes: 3 additions & 3 deletions R/Reporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Reporter <- R6::R6Class( # nolint: object_name_linter.
#'
#' @param cards (`ReportCard`) or a list of such objects
#' @return `self`, invisibly.
#' @examples
#' @examplesIf require("ggplot2")
#' library(ggplot2)
#' library(rtables)
#'
Expand Down Expand Up @@ -57,7 +57,7 @@ Reporter <- R6::R6Class( # nolint: object_name_linter.
#' @description Retrieves all `ReportCard` objects contained in the `Reporter`.
#'
#' @return A (`list`) of [`ReportCard`] objects.
#' @examples
#' @examplesIf require("ggplot2")
donyunardi marked this conversation as resolved.
Show resolved Hide resolved
#' library(ggplot2)
#' library(rtables)
#'
Expand Down Expand Up @@ -89,7 +89,7 @@ Reporter <- R6::R6Class( # nolint: object_name_linter.
#' @param sep An optional separator to insert between each content block.
#' Default is a `NewpageBlock$new()`object.
#' @return `list()` list of `TableBlock`, `TextBlock`, `PictureBlock` and `NewpageBlock`.
#' @examples
#' @examplesIf require("ggplot2")
#' library(ggplot2)
#' library(rtables)
#'
Expand Down
28 changes: 2 additions & 26 deletions man/PictureBlock.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 11 additions & 112 deletions man/Renderer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading