shinydashboardPlus
shinydashboardPlus copied to clipboard
unused argument (footer = dashboardFooter())
Dear all,
Thanks for developing such an useful tool!
When I was running the example code:
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(),
footer = dashboardFooter(
left = "By Divad Nojnarg",
right = "Zurich, 2019"
),
title = "DashboardPage"
),
server = function(input, output) { }
)
I encountered some problems: Error in dashboardPage(header = dashboardHeader(), sidebar = dashboardSidebar(), : unused argument (footer = dashboardFooter(left = "By Divad Nojnarg", right = "Zurich, 2019"))
But yesterday it worked well, today it could not.
Any advices would be highly appreciated! Thanks!
Kind regards, Birong
Dear all,
I guess it seems to be a compatibility issue. I exited R, re-library some packages, and now it works.
I guess you were using shinydashboard::dashboardPage
instead of shinydashboardPlus::dashboardPage
.
What do you mean with re-library? Did you deleted all packes and re-installed it? Cause I have the same issue using bs4Dash which adds extra feautures, like footer but somehow I get the unused argument error with footer, but also controlbar etc
No. I just quit R, then reopen it and library() those packages again.
What do you mean with re-library? Did you deleted all packes and re-installed it? Cause I have the same issue using bs4Dash which adds extra feautures, like footer but somehow I get the unused argument error with footer, but also controlbar etc
No. I just quit R, then reopen it and library() those packages again.
Im really confused..I did this too. Killed R, re-library it...still same error
Can you run this one?
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(),
footer = dashboardFooter(
left = "By Divad Nojnarg",
right = "Zurich, 2019"
),
title = "DashboardPage"
),
server = function(input, output) { }
)
Wait, my bad, indeed I forgot to add. Yes works! Also bs4Dash now!
But any knowledge about the theory behind it? Cause I guess I worked too long in the same project, though I always thought to kill R entirely bij closing using X
But any knowledge about the theory behind it? Cause I guess I worked too long in the same project, though I always thought to kill R entirely bij closing using X
I don't know. But my situation is the same as yours, I always need to restart R to ensure that the work can proceed smoothly
As shown in my earlier response, just use the double-colon operator (see:?`::`
) to avoid namespace issues.
No I did that with bs4Dash:: but didnt work...I really needed to kill R and re-lib all the packages