Skip to content

Commit

Permalink
clean R CMD check
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Sep 25, 2024
1 parent d863281 commit 19cf8a3
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
^.vscode$
^index\.md$
^README\.Rmd$
^index\.Rmd$
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ Imports:
htmltools,
shiny,
httpuv
Suggests:
bslib
Depends:
R (>= 2.10)
13 changes: 8 additions & 5 deletions R/layout.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,22 @@ page_386 <- function(..., title = NULL) {
tags$meta(`http-equiv` = "X-UA-Compatible", content = "IE=edge")
),
# body
tags$body(
div(
class = "container",
...
use_bs4_deps(
tags$body(
div(
class = "container",
...
)
)
) %>% use_bs4_deps()
)
)
}



#' Create a Bootstrap 386 tabset panel
#' @inheritParams shiny::tabsetPanel
#' @param position Tabs position (left or right).
#' @export
#' @examples
#' if (interactive()) {
Expand Down
2 changes: 1 addition & 1 deletion R/user-feedback.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ toast_386 <- function(id, title = NULL, subtitle = NULL, ..., img = NULL) {
`data-toggle` = "toast"
)

toast_wrapper %>% tagAppendChildren(toast_header, toast_body)
tagAppendChildren(toast_wrapper, toast_header, toast_body)
}


Expand Down
5 changes: 3 additions & 2 deletions R/utils-shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ create_checkbox_tag <- function(inputId, label, value = FALSE, width = NULL,
)

if (!is.null(value) && value) {
input_tag <- input_tag %>% tagAppendAttributes(checked = "checked")
input_tag <- tagAppendAttributes(input_tag, checked = "checked")
}

input_wrapper <- tags$div(
Expand All @@ -37,7 +37,8 @@ create_checkbox_tag <- function(inputId, label, value = FALSE, width = NULL,
}
)

input_wrapper %>% tagAppendChildren(
tagAppendChildren(
input_wrapper,
input_tag,
tags$label(class = "custom-control-label", `for` = inputId, label)
)
Expand Down
1 change: 1 addition & 0 deletions man/shiny386.Rd

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

2 changes: 2 additions & 0 deletions man/tabset_panel_386.Rd

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

0 comments on commit 19cf8a3

Please sign in to comment.