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

[Bug]: Exploratory app not working on shinyapps.io #14

Closed
3 tasks done
cicdguy opened this issue Feb 28, 2023 · 7 comments · Fixed by #15, #17 or #18
Closed
3 tasks done

[Bug]: Exploratory app not working on shinyapps.io #14

cicdguy opened this issue Feb 28, 2023 · 7 comments · Fixed by #15, #17 or #18
Assignees
Labels
bug Something isn't working

Comments

@cicdguy
Copy link
Contributor

cicdguy commented Feb 28, 2023

What happened?

Accessing https://genentech.shinyapps.io/nest_exploratory_main/ results in an error.

This is because of some missing dependencies needed for deployment of the app.

Relevant log output

2023-02-28T16:37:29.081484+00:00 shinyapps[8358361]: Error in tm_g_distribution("Distribution", dist_var = adsl_extracted_numeric,  : 
2023-02-28T16:37:29.081510+00:00 shinyapps[8358361]:   Cannot load package(s): ggpmisc.
2023-02-28T16:37:29.081514+00:00 shinyapps[8358361]: Install or restart your session.Cannot load package(s): ggpp.
2023-02-28T16:37:29.081519+00:00 shinyapps[8358361]: Install or restart your session.Cannot load package(s): goftest.
2023-02-28T16:37:29.081536+00:00 shinyapps[8358361]: Install or restart your session.

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
@cicdguy cicdguy added the bug Something isn't working label Feb 28, 2023
@cicdguy cicdguy assigned donyunardi, pawelru and cicdguy and unassigned donyunardi and pawelru Feb 28, 2023
@cicdguy cicdguy changed the title [Bug]: Exploratory app not working [Bug]: Exploratory app not working on shinyapps.io Feb 28, 2023
@pawelru
Copy link
Contributor

pawelru commented Feb 28, 2023

This should have been fixed with #8 -> ggpmisc added to the required packages in the DESCRIPTION file. I guess we just need to re-deploy (isn't it automatic btw?)

@cicdguy
Copy link
Contributor Author

cicdguy commented Feb 28, 2023

The DESCRIPTION file has no effect on app deployments. All dependency resolutions happen via the RSConnect's manifest.json, which is automatically generated for our apps.

The fix is straightforward where we just need to import the packages in the code.

@pawelru
Copy link
Contributor

pawelru commented Mar 2, 2023

I need to reopen as this is still failing. @cicdguy will you be able to check the logs again?

@cicdguy
Copy link
Contributor Author

cicdguy commented Mar 2, 2023

This time it's due to the following error:

2023-03-02T09:21:00.485936+00:00 shinyapps[8358361]: The following object is masked from ‘package:rlang’:
2023-03-02T09:21:00.485967+00:00 shinyapps[8358361]:     %||%
2023-03-02T09:21:07.191147+00:00 shinyapps[8358361]: Error in select(., USUBJID, STUDYID, SEX, ARMCD, AVAL, AVISIT, PARAMCD) : 
2023-03-02T09:21:07.191186+00:00 shinyapps[8358361]:   unused arguments (USUBJID, STUDYID, SEX, ARMCD, AVAL, AVISIT, PARAMCD)
2023-03-02T09:21:07.191205+00:00 shinyapps[8358361]: Shiny application exiting ...
2023-03-02T09:21:07.191210+00:00 shinyapps[8358361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2023-03-02T09:21:07.191215+00:00 shinyapps[8358361]: Execution halted

@cicdguy
Copy link
Contributor Author

cicdguy commented Mar 2, 2023

Dependencies are all loading as expected, so that is no longer an issue.

@pawelru pawelru mentioned this issue Mar 2, 2023
pawelru added a commit that referenced this issue Mar 2, 2023
@pawelru
Copy link
Contributor

pawelru commented Mar 3, 2023

@cicdguy same thing happened again - can you please check the logs?

@pawelru pawelru reopened this Mar 3, 2023
@cicdguy
Copy link
Contributor Author

cicdguy commented Mar 3, 2023

This time around it's ggExtra

2023-03-03T09:51:04.629080+00:00 shinyapps[8358361]: Error in tm_g_scatterplot("Scatterplot", x = adsl_extracted_num, y = adsl_extracted_num2,  : 
2023-03-03T09:51:04.629102+00:00 shinyapps[8358361]:   Cannot load package(s): ggExtra.
2023-03-03T09:51:04.629107+00:00 shinyapps[8358361]: Install or restart your session.
2023-03-03T09:51:04.629110+00:00 shinyapps[8358361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2023-03-03T09:51:04.629118+00:00 shinyapps[8358361]: Execution halted
2023-03-03T09:51:04.629148+00:00 shinyapps[8358361]: Shiny application exiting ...

@pawelru pawelru mentioned this issue Mar 3, 2023
pawelru added a commit that referenced this issue Mar 3, 2023
close #14 

I missed this in the previous PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants