You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developping a R package with a shiny application embedded in it and I use shinytest2 for my unit test of the shiny app and shiny modules.
This was working fine on R 4.3 but now that I'm trying to make it work with R4.4 I get the following error:
Even after simplifying testthat.R to simply test one small app, the error is still present.
Even stanger, this only happen if the app is declared in the package and disappear if I create it in the testthat.R file.
It does not happen on windows and only on linux.
Do you know where does it come from and how I could solve it ?
After debugging, and lookinf into shinytest2 code it seems that the Cannot find shiny port number is due to reaching the maximum load_timeout. By increasing it to 60sec the error disappear.
It could be nice to have a more explicit error 😄
Activity
LouisLeNezet commentedon Oct 2, 2024
After debugging, and lookinf into
shinytest2code it seems that theCannot find shiny port numberis due to reaching the maximumload_timeout. By increasing it to 60sec the error disappear.It could be nice to have a more explicit error 😄
gadenbuie commentedon Oct 2, 2024
Thanks for the suggestion! For completeness (or if you want to propose changes in a PR) the error message comes from
shinytest2/R/app-driver-start.R
Lines 99 to 104 in bf08af4
LouisLeNezet commentedon Oct 2, 2024
Done in #393