shinydashboardPlus icon indicating copy to clipboard operation
shinydashboardPlus copied to clipboard

unused argument (footer = dashboardFooter())

Open BirongZhang opened this issue 2 years ago • 12 comments

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

BirongZhang avatar Oct 14 '22 10:10 BirongZhang

Dear all,

I guess it seems to be a compatibility issue. I exited R, re-library some packages, and now it works.

BirongZhang avatar Oct 14 '22 10:10 BirongZhang

I guess you were using shinydashboard::dashboardPage instead of shinydashboardPlus::dashboardPage.

ismirsehregal avatar Oct 27 '22 20:10 ismirsehregal

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

HugoGit39 avatar Dec 29 '22 12:12 HugoGit39

No. I just quit R, then reopen it and library() those packages again.

BirongZhang avatar Dec 29 '22 12:12 BirongZhang

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.

BirongZhang avatar Dec 29 '22 12:12 BirongZhang

Im really confused..I did this too. Killed R, re-library it...still same error

HugoGit39 avatar Dec 29 '22 13:12 HugoGit39

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) { }
 )

BirongZhang avatar Dec 29 '22 13:12 BirongZhang

Wait, my bad, indeed I forgot to add. Yes works! Also bs4Dash now!

HugoGit39 avatar Dec 29 '22 13:12 HugoGit39

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

HugoGit39 avatar Dec 29 '22 13:12 HugoGit39

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

BirongZhang avatar Dec 29 '22 13:12 BirongZhang

As shown in my earlier response, just use the double-colon operator (see:?`::`) to avoid namespace issues.

ismirsehregal avatar Dec 29 '22 14:12 ismirsehregal

No I did that with bs4Dash:: but didnt work...I really needed to kill R and re-lib all the packages

HugoGit39 avatar Dec 29 '22 15:12 HugoGit39