Skip to content

Commit

Permalink
Update R/HTMLBlock.R
Browse files Browse the repository at this point in the history
Signed-off-by: Vedha Viyash <49812166+vedhav@users.noreply.github.com>
  • Loading branch information
vedhav authored Dec 13, 2024
1 parent 09043fc commit 79f4968
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/HTMLBlock.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ HTMLBlock <- R6::R6Class( # nolint: object_name_linter.
#' @return Object of class `HTMLBlock`, invisibly.
initialize = function(content) {
if (!missing(content)) {
checkmate::assert_multi_class(content, c("shiny.tag", "shiny.tag.list", "htmlwidget"))
self$set_content(content)
}
invisible(self)
Expand Down

0 comments on commit 79f4968

Please sign in to comment.