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

App works locally but breaks when deployed to shiny-server (Ubuntu 20.04; R Version 4.04) #25

Closed
wrathofquan opened this issue Mar 15, 2021 · 4 comments

Comments

@wrathofquan
Copy link

I have an app hosted here: http://128.199.15.25/shiny/wapo-explorer/

of newspaper data for one year. The app works perfectly locally (OSX 11.2; R Version 4.0.3) but breaks when deployed. The corporaexplorer/rds object is recognized because I can click on tiles to view individual documents but the app is suspended when trying a keyword search. In place of the usual time slider, I see the error:

"An error has occurred. Check your logs or contact the app author for clarification."

Checking the shiny-server logs shows this:

Listening on http://127.0.0.1:35697
Warning: Error in min: invalid 'type' (list) of argument
  103: validate_slider_value
  102: shiny::sliderInput
   96: renderUI
   95: func
   82: renderFunc
   81: output$time_filtering_ui
    1: runApp
Warning: Error in if: argument is of length zero
  1: runApp
Warning: Error in min: invalid 'type' (list) of argument
  103: validate_slider_value
  102: shiny::sliderInput
   96: renderUI
   95: func
   82: renderFunc
   81: output$time_filtering_ui
    1: runApp

My app.R file:

library(corporaexplorer) 
corpus <- readRDS("./saved_corporaexplorerobject.rds")
explore(corpus, plot_options = list(colours = c("gray", "green", "blue", "purple")))

This is a wonderful app and am hoping to get it working for a project but I am stuck on debugging this particular issue. Any guidance or suggestions are greatly appreciated.

@kgjerde
Copy link
Owner

kgjerde commented Mar 15, 2021

Thanks for your note. I hope this fixed it. Can you please install the dev version from github and let me know if it helped?

@wrathofquan
Copy link
Author

Thank you! Yes, the range() fix did the trick. Cheers.

@rickyking
Copy link

Possible to push this fix to the CRAN?

@kgjerde
Copy link
Owner

kgjerde commented Mar 18, 2021

Possible to push this fix to the CRAN?

Version 0.8.4 now published on CRAN.

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