diff --git a/R/visualizer.R b/R/visualizer.R index 4b64b0c..7fa1661 100644 --- a/R/visualizer.R +++ b/R/visualizer.R @@ -415,6 +415,9 @@ Visualizer <- R6::R6Class( cat(" Parameters: ") cat(str(self$viz_params, indent.str = " ", no.list = F)) + cat(" Export Options: ") + cat(str(self$export_options, + indent.str = " ", no.list = F)) cat(" R Markdown Options: ") cat(str(self$doc_options, indent.str = " ", no.list = F)) diff --git a/tests/testthat/test-visualizer.R b/tests/testthat/test-visualizer.R index e0a673c..e4c7ba2 100644 --- a/tests/testthat/test-visualizer.R +++ b/tests/testthat/test-visualizer.R @@ -18,10 +18,11 @@ test_that("Visualizer initialization works properly", { visualizer1i <- Visualizer$new(n = 100, func = func, viz_fun1) visualizer1j <- Visualizer$new(n = 100, viz_fun1, "Visualizer") visualizer1k <- Visualizer$new(viz_fun1, "Visualizer", - list(width = 8), doc_o = TRUE, n = 100) + .doc_options = list(width = 8), + doc_o = TRUE, n = 100) visualizer1l <- Visualizer$new(viz_fun1, "Visualizer", n = 100, doc_o = TRUE) visualizer1m <- Visualizer$new(viz_fun1, a = 5, "Visualizer", - list(width = 8), doc_o = TRUE) + .doc_options = list(width = 8), doc_o = TRUE) # print statements expect_snapshot_output(visualizer1)