RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
449 stars 78 forks source link

unused argument (footer = dashboardFooter()) #172

Open BirongZhang opened 1 year ago

BirongZhang commented 1 year ago

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 commented 1 year ago

Dear all,

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

ismirsehregal commented 1 year ago

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

HugoGit39 commented 1 year ago

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

BirongZhang commented 1 year ago

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

BirongZhang commented 1 year ago

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.

HugoGit39 commented 1 year ago

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

BirongZhang commented 1 year ago

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) { }
 )
HugoGit39 commented 1 year ago

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

HugoGit39 commented 1 year ago

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

BirongZhang commented 1 year ago

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

ismirsehregal commented 1 year ago

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

HugoGit39 commented 1 year ago

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