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

Error in start_metshi() Function - Gray Screen and Unexpected Closing #56

Open
PSobrevalsAlcaraz opened this issue Oct 22, 2024 · 0 comments

Comments

@PSobrevalsAlcaraz
Copy link

PSobrevalsAlcaraz commented Oct 22, 2024

Hi Joanna,

First of all, thank you for sharing this nice ShinyApp!
I am trying to install it through R, and I've installed everything from the dev branch successfully. But when I execute the start_metshi() function I encounter something odd, the app opens in my browser with the message "" and the logo, but then the screen turns gray and stops working.

The R console shows the following output:

[1] "Adding disk: C:/ to file picker."
[1] "Adding disk: D:/ to file picker."

Listening on http://0.0.0.0:8080
The `name` provided ('hand-o-right') does not correspond to a known icon
Warning: Navigation containers expect a collection of `bslib::nav_panel()`/`shiny::tabPanel()`s and/or `bslib::nav_menu()`/`shiny::navbarMenu()`s. Consider using `header` or `footer` if you wish to place content above (or below) every panel's contents.
Warning: Navigation containers expect a collection of `bslib::nav_panel()`/`shiny::tabPanel()`s and/or `bslib::nav_menu()`/`shiny::navbarMenu()`s. Consider using `header` or `footer` if you wish to place content above (or below) every panel's contents.
Warning: Navigation containers expect a collection of `bslib::nav_panel()`/`shiny::tabPanel()`s and/or `bslib::nav_menu()`/`shiny::navbarMenu()`s. Consider using `header` or `footer` if you wish to place content above (or below) every panel's contents.
**Warning: Error in if: argument is of length zero**
  46: ::
shiny
observe [C:\Users\psobrevals\AppData\Local\R\win-library\4.3\MetaboShiny/server.R#39]
  45: <observer>
   2: shiny::runApp
   1: start_metshi
[1] "C:/Users/psobrevals/Documents/MetaboShiny/options.txt"
[1] "Can't find 'root' directory -  activating docker > R autofix..."
**Warning: The 'plotly_click' event tied a source ID of 'A' is not registered. In order to obtain this event data, please add `event_register(p, 'plotly_click')` to the plot (`p`) that you wish to obtain event data from.
[1] "Closing MetaboShiny..."**

The warnings seem significant, especially the one involving an if condition error* and the unregistered 'plotly_click' event*. Although the most relevant is the closing metaboshiny*, where the app closes unexpectedly.
*Highlighted them in bold for clarification.

I'm not sure where this is coming from, and I cannot figure it out by myself.
Have you encountered this before? Do you have any suggestions of how to solve this?

Thank you so much for your time and help!

Best regards,
Paula

@PSobrevalsAlcaraz PSobrevalsAlcaraz changed the title Error in start_metshi() Function - Condition Has Length > 1 Error in start_metshi() Function - Gray Screen and Unexpected Closing Nov 5, 2024
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

1 participant