This function modifies the attributes of the last n elements of a teal_card
that are chunk_output objects. It can be used to set attributes like dev.width
and dev.height for plot outputs.
set_chunk_attrs(
teal_card,
attributes,
n = 1,
inner_classes = NULL,
quiet = FALSE
)(teal_card) the teal_card object to modify
(list) named list of attributes to set
(integer(1)) number of the last element of teal_card to modify.
it will only change chunk_output objects.
(character) classes within chunk_output that should be modified.
This can be used to only change recordedplot, ggplot2 or other type of objects.
(logical) whether to suppress warnings