RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
454 stars 77 forks source link

some functions cannot be called #114

Closed chengren closed 2 years ago

chengren commented 3 years ago

Hi, After the update, it looks like some functions such as dashboardPagePlus, dashboardHeaderPlus, cannot be called. It will return "could not find function "dashboardPagePlus" after calling. I wonder whether it is my personal issue? Thank you so much!

jianhaizhang commented 3 years ago

I have the same issue. In the R directory, there is no "dashboardPagePlus", "dashboardHeaderPlus" documentation.

Rohit1310 commented 3 years ago

I am also facing the issue, could not find function "dashboardPagePlus" after calling,

David-Degnan commented 3 years ago

I am also facing this issue! I will use the last tagged version (0.7.5)

ginberg commented 3 years ago

there has been a major refactoring in the last version, see news you can remove the 'Plus' from dashboardPagePlus, etc but the library shinydashboardPlus needs to be loaded after shinydashboard. See basic example in this article

jianhaizhang commented 3 years ago

If so, box and boxPlus will be the same?

ginberg commented 3 years ago

have a look at the breaking changes in news, it seems like there have been quite some changes for boxPlus

DivadNojnarg commented 3 years ago

Below is a quite complete box component and here a entire vignette covering all boxes:

library(shiny)
 library(shinydashboard)
 library(shinydashboardPlus)

 shinyApp(
   ui = dashboardPage(
     dashboardHeader(),
     dashboardSidebar(),
     dashboardBody(
      box(
        title = "Closable Box with dropdown", 
        closable = TRUE, 
        width = 12,
        status = "warning", 
        solidHeader = FALSE, 
        collapsible = TRUE,
        label = boxLabel(
         text = 1,
         status = "danger",
         style = "circle"
        ),
        dropdownMenu = boxDropdown(
         boxDropdownItem("Link to google", href = "http://www.google.com"),
         boxDropdownItem("item 2", href = "#"),
         dropdownDivider(),
         boxDropdownItem("item 3", href = "#", icon = icon("th"))
        ),
        sidebar = boxSidebar(
         startOpen = TRUE,
         id = "mycardsidebar",
         sliderInput(
          "obs", 
          "Number of observations:",
          min = 0, 
          max = 1000, 
          value = 500
         )
        ),
        plotOutput("distPlot")
       )
     )
   ),
   server = function(input, output) {
    output$distPlot <- renderPlot({
     hist(rnorm(input$obs))
    })
   }
 )
jianhaizhang commented 3 years ago

have a look at the breaking changes in news, it seems like there have been quite some changes for boxPlus

It seems boxPlusSidebar is not included when I run'boxPlusSidebar' %in% ls('package:shinydashboardPlus'), which is mentioned in the news: Remove all sidebar related parameters from boxPlus(). This is now part of the new boxPlusSidebar().

DivadNojnarg commented 3 years ago

As I said I my above comment, have a look at the box vignette which is the real source of truth.

I had to push this CRAN release on a hassle (to avoid this package from being archived from CRAN) without being able to finish to reorder the news.md file.

jianhaizhang commented 3 years ago

Thank you for the reply!