Skip to content

Commit

Permalink
fix lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Oct 16, 2023
1 parent 5aedee9 commit 27d061d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions R/tm_landing_popup.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
#' extra_server = teal.modules.general::landing_popup(
#' title = "Welcome",
#' content = div(tags$b("A place for the welcome message or a disclaimer statement.", style = "color: red;")),
#' buttons = tagList(modalButton("Proceed"), actionButton("close", "Read more", onclick = "window.open('http://google.com', '_blank')"))
#' buttons = tagList(
#' modalButton("Proceed"),
#' actionButton("close", "Read more", onclick = "window.open('http://google.com', '_blank')")
#' )
#' )
#' )
#'
Expand All @@ -43,7 +46,9 @@
#' @export
landing_popup <- function(title = NULL, content = NULL, buttons = modalButton("Accept")) {
checkmate::assert_string(title, null.ok = TRUE)
checkmate::assert_multi_class(content, classes = c("character", "shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE)
checkmate::assert_multi_class(
content, classes = c("character", "shiny.tag", "shiny.tag.list", "html"), null.ok = TRUE
)
checkmate::assert_multi_class(buttons, classes = c("shiny.tag", "shiny.tag.list"), null.ok = TRUE)

showModal(
Expand Down
5 changes: 4 additions & 1 deletion man/landing_popup.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27d061d

Please sign in to comment.