Closed wch closed 2 years ago
Thanks @wch. I'll merge today and re-submit.
@wch : I have to align {bs4Dash}
as well
Thank you for the quick response!
shinydashboardPlus, shinyMobile and bs4Dash are all updated and on CRAN.
Dear maintainer,
thanks, package bs4Dash_2.0.3.tar.gz is on its way to CRAN.
Best regards, CRAN teams' auto-check service
Afficher le message d’origine Package check result: OK
No changes to worse in reverse depends.
The error persists !
I get Error in get_quosure: could not find function "get_quosure"
every time I launch my shiny app.
My working shiny app that used shinydashboardPlus started giving above error with no other changes made.
I have resinstalled shinydashboardPlus
as well as bs4Dash
as recommended above. But the error persists. As my shinyapp that is used by many users URGENT HELP REQUESTED.
Here are the steps I have done after the upgrade of shiny to 1.7.0
Is there a way I can roll back to old shiny version as a workaround?
@wch : I have to align
{bs4Dash}
as well
Was this done?
I have rolled back to shiny 1.6.0
and my app is UP.
So the problem was surely because of 1.7.0.
Maybe somenthing else is missing. I have to re-check.
Something unclear: is your app using bs4Dash and shinydashboardPlus at the same time? From you log I can't say.
I can reproduce this (using the latest CRAN versions) with the ?renderMenu
example from shinydashboard
:
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
ui <- dashboardPage(
dashboardHeader(title = "Dynamic sidebar"),
dashboardSidebar(
sidebarMenuOutput("menu")
),
dashboardBody()
)
server <- function(input, output) {
output$menu <- renderMenu({
sidebarMenu(
menuItem("Menu item", icon = icon("calendar"))
)
})
}
shinyApp(ui, server)
results in:
Listening on http://127.0.0.1:4923
Warning: Error in get_quosure: could not find function "get_quosure"
51: renderMenu
50: server [~/.active-rstudio-document#16]
Error in get_quosure(expr, env, quoted) :
could not find function "get_quosure"
However, I'm not sure if this is still library(shinydashboardPlus)
related.
Edit: No, this seems to be a library(shinydashboard)
issue.
Good catch! Thx
@DivadNojnarg : I am not explicitly using bs4Dash just updated the package (thinking there may be a dependency). Now it seems it is established that it is a shinydashboard problem. Waiting for the fix. ThANKS.
Please update when this is fixed... in the meantime, are there any workarounds?
As reported above, it's not a {shinydashboardPlus}
issue. Please update {shinydashboard}
to the latest CRAN.
With the upcoming Shiny 1.7.0 release candidate, the old previous code caused the following error in
R CMD check
:This is because the following line copies the function directly from the installed version of Shiny, and in Shiny 1.7.0, that function contains a call to
bslib::nav()
:There are additional reasons that it is dangerous to copy objects from another package at build time, which is what that line does. It means that the object will be copied from the version of Shiny installed when shinydashboardPlus was built, but if the version of Shiny is later update, then shinydashboardPlus will still have the old version of the function copied from the old version of Shiny.
Please read https://r-pkgs.org/r.html#aliasing-a-function for more information about possible problems from copying functions at package build time.
If you could please merge and release a new version as soon as possible, we would appreciate it, as this is a blocker for the upcoming Shiny 1.7.0.