From 0a9199924ef47cdba8dd1bd0ab1757bfcd56b4e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ver=C3=ADssimo?= <211358+averissimo@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:56:57 +0100 Subject: [PATCH] fix: bad sample code snuk into commit --- R/Reporter.R | 2 +- man/Reporter.Rd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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()