daattali / shinycssloaders

⌛ Add loading animations to a Shiny output while it's recalculating
https://daattali.com/shiny/shinycssloaders-demo/
Other
395 stars 45 forks source link

showPageSpinner/hidePageSpinner don't work #82

Closed JohnHendrickx closed 1 year ago

JohnHendrickx commented 1 year ago

I'm trying to run the "full-page spinner" example from the readme on this site but showPageSpinner and hidePageSpinner functions aren't recognized. The app runs but if I click "go" I get the following error and the app crashes:

Listening on http://127.0.0.1:4874
Warning: Error in showPageSpinner: could not find function "showPageSpinner"
  3: runApp
  2: print.shiny.appobj
  1: <Anonymous>

My sessionInfo:


> sessionInfo()
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=Dutch_Netherlands.utf8  LC_CTYPE=Dutch_Netherlands.utf8    LC_MONETARY=Dutch_Netherlands.utf8
[4] LC_NUMERIC=C                       LC_TIME=Dutch_Netherlands.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shinycssloaders_1.0.0 shiny_1.7.4          

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10       rstudioapi_0.14   magrittr_2.0.3    xtable_1.8-4      R6_2.5.1          ragg_1.2.5        rlang_1.1.0      
 [8] fastmap_1.1.1     tools_4.2.3       cli_3.6.1         jquerylib_0.1.4   htmltools_0.5.5   systemfonts_1.0.4 ellipsis_0.3.2   
[15] digest_0.6.31     lifecycle_1.0.3   crayon_1.5.2      textshaping_0.3.6 later_1.3.0       sass_0.4.5        promises_1.2.0.1 
[22] memoise_2.0.1     cachem_1.0.7      mime_0.12         compiler_4.2.3    bslib_0.4.2       jsonlite_1.8.4    httpuv_1.6.9
daattali commented 1 year ago

It's a new feature, not yet available on CRAN version. You need to install the dev version from github.

reisner commented 12 months ago

Hi @daattali - any idea when this will be added to the CRAN version?

daattali commented 12 months ago

I want to give it some time because there's a lot of new features in this version and they're not simple, so there's a lot of potential room for bugs. So I want to allow another month for beta testing by users