OHDSI / CohortDiagnostics

An R package for performing various cohort diagnostics.
https://ohdsi.github.io/CohortDiagnostics
40 stars 45 forks source link

Can not deploy diagnostics explorer shinyapp #993

Closed catalamarti closed 1 year ago

catalamarti commented 1 year ago

We have this error when we try to deploy the shiny app at shinyapps.io

To be more specific. We are able to deploy the shinyapp but this error appears when we try to see: index breakdown tab or any of the characterization tabs.

2022-11-04T10:55:07.794312+00:00 shinyapps[7501857]: Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
2022-11-04T10:55:07.794349+00:00 shinyapps[7501857]:   RcallMethod: cannot determine object class
2022-11-04T10:55:07.796334+00:00 shinyapps[7501857]: Warning: Error in FUN: java.lang.StackOverflowError
2022-11-04T10:55:07.802480+00:00 shinyapps[7501857]:   161: <Anonymous>

Is there a specific version of java or something that we should have?

azimov commented 1 year ago

Hi @catalamarti I have no prior experiencing publishing on shinyapps.io so i'd be interested to see how this goes. The OHDSI setup instructions on Java are here.

I have no idea what the java environment on shinyapps.io is. However, if you're using an sqlite db it shouldn't be needed; we use RSqlite which does not make use of java. Are you trying to connect to a postgresql instance?

However, OHDSI does provide an open solution on data.ohdsi.org that is compatible with CohortDIagnostics - ShinyDeploy.

azimov commented 1 year ago

closing due to lack of activity

solis9753 commented 1 year ago

@catalamarti Have you got a solution for this?

catalamarti commented 1 year ago

No @solis9753 , we are currently working with a previous version of CohortDiagnostics (v2.2.4) that allows us to deploy in shinyapps.io. Will try to solve this issue in the future, but we were not able to deploy the new version of DiagnosticsExplorer for the moment.