RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
454 stars 77 forks source link

Issues with demo site and shinydashboardPlusGallery() #125

Closed williamlai2 closed 3 years ago

williamlai2 commented 3 years ago

Cannot access the gallery either via the website, https://rinterface.com/shiny/shinydashboardPlus/ (it won't load) or using shinydashboardPlusGallery().

Initially it wouldn't run, because I had to install these packages:

install.packages("styler")
install.packages("shinyAce")
install.packages("shinyjqui")
install.packages("shinyEffects")

Then:

The R.cache package needs to create a directory that will hold cache files.

Which I agreed to, but then I got this message.

Error: 'jqui_sortabled' is not an exported object from 'namespace:shinyjqui'

Session info:

> xfun::session_info("shinydashboardPlus")
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS, RStudio 1.2.5033

Locale:
  LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
  LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C           LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

Package version:
  base64enc_0.1.3          BH_1.75.0.0              bslib_0.2.4              cachem_1.0.4             commonmark_1.7           crayon_1.4.1            
  digest_0.6.27            ellipsis_0.3.1           fastmap_1.1.0            fresh_0.2.0              fs_1.5.0                 glue_1.4.2              
  graphics_4.0.3           grDevices_4.0.3          htmltools_0.5.1.1        httpuv_1.5.5             jquerylib_0.1.3          jsonlite_1.7.2          
  later_1.1.0.1            lifecycle_1.0.0          magrittr_2.0.1           methods_4.0.3            mime_0.10                promises_1.2.0.1        
  R6_2.5.0                 rappdirs_0.3.3           Rcpp_1.0.6               rlang_0.4.10             rstudioapi_0.13          sass_0.3.1              
  shiny_1.6.0              shinydashboard_0.7.1     shinydashboardPlus_0.7.5 sourcetools_0.1.7        stats_4.0.3              tools_4.0.3             
  utils_4.0.3              waiter_0.2.0             withr_2.4.1              xtable_1.8.4   
williamlai2 commented 3 years ago

I updated the package:

> packageVersion("shinydashboardPlus")
[1] ‘2.0.0’

And I get a different error when trying to run shinydashboardPlusGallery().

After the bits about attaching packages and loading the required namespace, I get this:

Error in dashboardPage(md = FALSE, dashboardHeader(fixed = TRUE, title = tagList(span(class = "logo-lg", : unused arguments (md = FALSE, controlbar = dashboardControlbar(skin = "dark", controlbarMenu(controlbarItem(title = "Tab 1", icon = icon("desktop"), active = TRUE, sliderInput(inputId = "inputsidebar1", label = "Number of observations:", min = 0, max = 1000, value = 500)), controlbarItem(icon = icon("paint-brush"), title = "Tab 2", numericInput(inputId = "inputsidebar2", label = "Observations:", value = 10, min = 1, max = 100)))), footer = dashboardFooter(left = "By Divad Nojnarg", right = "Zurich, 2019"))

williamlai2 commented 3 years ago

Seems to work for me now. I don't think I have made any changes. Maybe a restart after installing the packages perhaps?