Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unused argument (footer = dashboardFooter()) #172

Open
BirongZhang opened this issue Oct 14, 2022 · 12 comments
Open

unused argument (footer = dashboardFooter()) #172

BirongZhang opened this issue Oct 14, 2022 · 12 comments

Comments

@BirongZhang
Copy link

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
Copy link
Author

Dear all,

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

@ismirsehregal
Copy link
Contributor

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

@HugoGit39
Copy link

HugoGit39 commented Dec 29, 2022

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
Copy link
Author

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

@BirongZhang
Copy link
Author

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
Copy link

HugoGit39 commented Dec 29, 2022

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

@BirongZhang
Copy link
Author

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
Copy link

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

@HugoGit39
Copy link

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
Copy link
Author

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
Copy link
Contributor

ismirsehregal commented Dec 29, 2022

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

@HugoGit39
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants