diff --git a/R/Reporter.R b/R/Reporter.R index 06930ccf..ac2781d6 100644 --- a/R/Reporter.R +++ b/R/Reporter.R @@ -34,7 +34,7 @@ Reporter <- R6::R6Class( # nolint: object_name_linter. #' card1$append_text("Header 2 text", "header2") #' card1$append_text("A paragraph of default text", "header2") #' card1$append_plot( - #' plot(1:10) + #' ggplot2::ggplot(iris, ggplot2::aes(x = Petal.Length)) + ggplot2::geom_histogram() #' ) #' #' card2 <- ReportCard$new() diff --git a/man/Reporter.Rd b/man/Reporter.Rd index 1c4893f1..82f1d81f 100644 --- a/man/Reporter.Rd +++ b/man/Reporter.Rd @@ -34,7 +34,7 @@ card1 <- ReportCard$new() card1$append_text("Header 2 text", "header2") card1$append_text("A paragraph of default text", "header2") card1$append_plot( - plot(1:10) + ggplot2::ggplot(iris, ggplot2::aes(x = Petal.Length)) + ggplot2::geom_histogram() ) card2 <- ReportCard$new() @@ -248,7 +248,7 @@ card1 <- ReportCard$new() card1$append_text("Header 2 text", "header2") card1$append_text("A paragraph of default text", "header2") card1$append_plot( - plot(1:10) + ggplot2::ggplot(iris, ggplot2::aes(x = Petal.Length)) + ggplot2::geom_histogram() ) card2 <- ReportCard$new()