Skip to content

Commit 28fbf2d

Browse files
m7praverissimo
andauthored
Apply suggestions from code review
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
1 parent 517b17d commit 28fbf2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/utils.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ select_decorators <- function(decorators, scope) {
373373
#' This can be used to only change `recordedplot`, `ggplot2` or other type of objects.
374374
#' @importFrom utils modifyList
375375
#' @keywords internal
376-
set_plot_attrs <- function(teal_card,
376+
set_chunk_attrs <- function(teal_card,
377377
attributes,
378378
n = 1,
379379
inner_classes = NULL,
@@ -430,15 +430,15 @@ set_plot_attrs <- function(teal_card,
430430
#' @return A reactive expression that returns the teal_card with updated dimensions
431431
#'
432432
#' @keywords internal
433-
set_plot_dims <- function(pws, decorated_output_q, inner_classes = NULL) {
433+
set_chunk_dims <- function(pws, decorated_output_q, inner_classes = NULL) {
434434
checkmate::assert_class(pws, "plot_widget")
435435
checkmate::assert_class(decorated_output_q, "reactive")
436436
checkmate::assert_character(inner_classes, null.ok = TRUE)
437437

438438
reactive({
439439
dims <- req(pws$dim())
440440
q <- req(decorated_output_q())
441-
teal.reporter::teal_card(q) <- set_plot_attrs(
441+
teal.reporter::teal_card(q) <- set_chunkt_attrs(
442442
teal.reporter::teal_card(q),
443443
list(dev.width = dims[[1]], dev.height = dims[[2]]),
444444
inner_classes = inner_classes

0 commit comments

Comments
 (0)