Closed chengren closed 2 years ago
I have the same issue. In the R directory, there is no "dashboardPagePlus", "dashboardHeaderPlus" documentation.
I am also facing the issue, could not find function "dashboardPagePlus" after calling,
I am also facing this issue! I will use the last tagged version (0.7.5)
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
If so, box and boxPlus will be the same?
have a look at the breaking changes in news, it seems like there have been quite some changes for boxPlus
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))
})
}
)
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().
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.
Thank you for the reply!
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!