rebus
rebus copied to clipboard
shiny and rebus package name conflict
It seems that rebus package uses the same names as shiny package, which causes mistakes that difficult to locate. In particular, 'tags' causes the problems. Is it possible to resolve the namespace conflict on package level in 'rebus'? Example code:
library(shiny)
library(shinydashboard)
library(rebus)
dbHeader <- dashboardHeader(titleWidth = 140)
# this code will work
# dbHeader$children[[2]]$children<-shiny::span(shiny::tagList(shiny::tags$img(src="logo.png",
# height="45",
# width="125")))
# this code will fail with error
# Error in tags$img : object of type 'closure' is not subsettable
dbHeader$children[[2]]$children<-span(tagList(tags$img(src="logo.png",
height="45",
width="125")))
# Run the application
shinyApp(ui = fluidPage(), server = function(input, output){})