-
Notifications
You must be signed in to change notification settings - Fork 89
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
We ran the shiny app, but it was empty #460
Comments
Hi, yes I can confirm that there is no row at the bottom. We have tried running it again today and had the same problem: the app was empty. Please find screenshot attached. |
Hi @arani11, This sounds like a java error we used to get when running shiny apps on ubuntu. How are you running the shiny app? I can see you are opening it in Windows, but maybe there's a server somewhere running it? Are you maybe running rstudio server? Do you get the same error if you hit the "Open in browser" button at the top below the URL ? |
Hi @egillax Thanks for your reply. I am running it on an Rstudio server. Yes I get the same error when I open in browser too. Are you able to help please? Thanks |
The fix for the java error was putting the following in your options(java.parameters = "-Xss3m") If you don't know how to edit that file you can use You need to restart you rsession for this to take effect. Let me know if this works. I'm not sure if this works on Rstudio server but hopefully it does. |
Thanks for your reply @egillax. I tried doing the above and this time had the following error message: |
It says an error report |
@egillax please find attached. |
The error indicates the How are you defining your |
Yes that shows it's defined correctly. The output directory of your model development should look something like this: plpResult/ In the Can you find the file and check it's the same for you? |
plp analysis -----populationSettings <- createStudyPopulationSettings( splitSettings <- createDefaultSplitSetting( sampleSettings <- createSampleSettings(type = "none") featureEngineeringSettings <- createFeatureEngineeringSettings() preprocessSettings <- createPreprocessSettings( if(isTRUE(run_individual_lr)){ lrResults <- runPlp( saveRDS(lrResults, "results/workingOutputFolder/lrResults.rds") if(isTRUE(run_individual_xgb)){ lrXGBResults <- runPlp( |
@egillax please see above - is this the correct file? thanks |
Not exactly. But if you execute the following you should get the info: lrResults <- readRDS("results/workingOutputFolder/lrResults.rds")
modelDesign <- lrResults$model$modelDesign
modelDesign$populationSettings That should print the info. I assume after you developed the model you call
|
Please see below @egillax
$includeAllOutcomes $firstExposureOnly $washoutPeriod $removeSubjectsWithPriorOutcome $priorOutcomeLookback $requireTimeAtRisk $minTimeAtRisk $riskWindowStart $startAnchor $riskWindowEnd $endAnchor $restrictTarToCohortEnd attr(,"class") |
#View reults > lrResults <- readRDS("~/External_validation/results/CPRD GOLD_psoriasis_to_psa_specific_2024-06-01 17:52:36/lrResults.rds") Error in gzfile(file, "rb") : cannot open the connection In addition: Warning message: In gzfile(file, "rb") : cannot open compressed file '/home/AD_NDORMS/araniv/External_validation/results/CPRD GOLD_psoriasis_to_psa_specific_2024-06-01 17:52:36/lrResults.rds', probable reason 'No such file or directory' > viewPlp(lrResults,es,diagnosePlp = NULL) Connecting using SQLite driver All or some PLP result tables do not exist, tables being recreated Deleting existing tables Creating PLP results tables \|=======================================================================================\| 100% Executing SQL took 0.039 secs PLP result migrration being applied Migrating data set Migrator using SQL files in PatientLevelPrediction Connecting using SQLite driver Creating migrations table \|=======================================================================================\| 100% Executing SQL took 0.00526 secs Migrations table created Executing migration: Migration_1-store_version.sql \|=======================================================================================\| 100% Executing SQL took 0.00581 secs Saving migration: Migration_1-store_version.sql \|=======================================================================================\| 100% Executing SQL took 0.00473 secs Migration complete Migration_1-store_version.sql Closing database connection Updating version number Connecting using SQLite driver \|=======================================================================================\| 100% Executing SQL took 0.00582 secs Connecting using SQLite driver Adding TAR \|=======================================================================================\| 100% Executing SQL took 0.00464 secs tarId: 1 Adding cohort Cohort: 1 Inserting data took 0.0235 secs Adding cohort Cohort: 1 Inserting data took 0.0497 secs tId: 1 Adding cohort Cohort: 2 Inserting data took 0.0118 secs Adding cohort Cohort: 2 Inserting data took 0.0109 secs oId: 2 Adding new population settings Inserting data took 0.0108 secs popSetId: 1 Adding new covariate settings Inserting data took 0.0108 secs covSetId: 1 Adding new model settings Inserting data took 0.0126 secs modSetId: 1 Adding new plp data settings Inserting data took 0.0125 secs plpDataSetId: 1 Adding new feature_engineering settings Inserting data took 0.0126 secs FESetId: 1 Adding new sample settings Inserting data took 0.0123 secs sampleSetId: 1 Adding new tidy covariates settings Inserting data took 0.0123 secs tidySetId: 1 Adding new split settings Inserting data took 0.013 secs splitId: 1 \|=======================================================================================\| 100% Executing SQL took 0.00627 secs modelDesignId: 1 \|=======================================================================================\| 100% Executing SQL took 0.0052 secs \|=======================================================================================\| 100% Executing SQL took 0.00527 secs Database meta data already exists Database1 already exists \|=======================================================================================\| 100% Executing SQL took 0.00578 secs modelId: 1 inserted for modelDesignId 1and databaseId 1 TAR exists json in jsons:TRUE Cohort Cohort: 1 exists in cohort_definition with cohort id1 Cohort Cohort: 1 exists in cohorts with cohort id1 json in jsons:TRUE Cohort Cohort: 2 exists in cohort_definition with cohort id2 Cohort Cohort: 2 exists in cohorts with cohort id2 Population settings exists Split setting exists Inserting performance... \|=======================================================================================\| 100% Executing SQL took 0.00492 secs performanceId: 1 Inserting attrition for performance 1 Inserting data took 0.0127 secs Adding PredictionDistribution Inserting predictionDistribution for performance 1 Inserting data took 0.0148 secs Adding ThresholdSummary Inserting thresholdSummary for performance 1 Inserting data took 0.0192 secs Adding EvaluationStatistics Inserting evaluationSummary for performance 1 Inserting data took 0.0118 secs Adding CalibrationSummary Inserting calibrationSummary for performance 1 Inserting data took 0.0146 secs Adding DemographicSummary Inserting demographicSummary for performance 1 Inserting data took 0.0146 secs Restricting to covariates included in model Inserting covariateSummary for result 1 Inserting data took 0.0171 secs Error in insertRunPlpToSqlite(runPlp = runPlp, externalValidatePlp = validatePlp, : object 'es' not found -- > | > > |
Please see above (and also attached, in case that is easier to read for you) for the second part of your question. Thanks |
Hi @arani11, You seem to be getting a different error now? How are you generating the |
Hi @egillax |
Sure if you send me an invite to [email protected] I can hop on a quick call |
We ran the shiny app for our PLP prediction model, but after running it, the app was empty - it did not contain any of the data. Are you able to help with this please? Screenshot attached below. Thank you.
The text was updated successfully, but these errors were encountered: