Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Sep 7, 2021
1 parent 9c6616c commit 7dbe9e1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 35 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ export(websocket_client)
export(websocket_server)
import(htmltools)
import(shiny)
importFrom(graphics,hist)
importFrom(htmltools,htmlDependency)
importFrom(htmltools,tagList)
importFrom(magrittr,"%>%")
importFrom(shiny,registerInputHandler)
importFrom(stats,rnorm)
importFrom(stringr,str_c)
importFrom(stringr,str_extract_all)
importFrom(utils,packageVersion)
19 changes: 2 additions & 17 deletions R/tabler.R
Original file line number Diff line number Diff line change
Expand Up @@ -1054,25 +1054,10 @@ show_tabler_dropdown <- function(id, session = getDefaultReactiveDomain()) {
#' @param target Target tab after or before which the new tab will be inserted.
#' @param position Insert position: "before" or "after".
#' @param select Whether to select the new tab at start. Default to FALSE.
#' @param handler_type Only for the Book purpose. Allow to select a given
#' custom message handler, to produce different behavior. You don't need
#' this in production!
#' @param session Shiny session.
#' @export
#'
#' @examples
#' if (interactive()) {
#' library(shiny)
#' # See book section 15.4 (Tab events)
#' # insert tab with wrong custom handler. The tab is inserted
#' # but nothing is displayed inside.
#' insert_tabler_tab_example(1)
#'
#' # insert tab with good custom handler.
#' insert_tabler_tab_example(2)
#' }
insert_tabler_tab <- function(inputId, tab, target, position = c("before", "after"),
select = FALSE, handler_type, session = getDefaultReactiveDomain()) {
select = FALSE, session = getDefaultReactiveDomain()) {

inputId <- session$ns(inputId)
position <- match.arg(position)
Expand Down Expand Up @@ -1127,7 +1112,7 @@ insert_tabler_tab <- function(inputId, tab, target, position = c("before", "afte
#' @param session Shiny session.
#' @export
insert_tabler_tab_2 <- function(inputId, tab, target, position = c("before", "after"),
select = FALSE, handler_type, session = getDefaultReactiveDomain()) {
select = FALSE, session = getDefaultReactiveDomain()) {

inputId <- session$ns(inputId)
position <- match.arg(position)
Expand Down
2 changes: 2 additions & 0 deletions R/websocket.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ websocket_client <- function(host = "127.0.0.1", port = 8080) {
#'
#' @param delay To simulate computationally intense task.
#' @return An httpuv powered app
#' @importFrom graphics hist
#' @importFrom stats rnorm
#' @export
#'
#' @examples
Expand Down
17 changes: 0 additions & 17 deletions man/insert_tabler_tab.Rd

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

1 change: 0 additions & 1 deletion man/insert_tabler_tab_2.Rd

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

0 comments on commit 7dbe9e1

Please sign in to comment.