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

Startup error: postgresqlNewConnection(drv, ...): RS-DBI driver: ( #156

Open
jielab opened this issue Jul 19, 2022 · 3 comments
Open

Startup error: postgresqlNewConnection(drv, ...): RS-DBI driver: ( #156

jielab opened this issue Jul 19, 2022 · 3 comments

Comments

@jielab
Copy link

jielab commented Jul 19, 2022

Hi, there:

I am trying to run SORMAS-Stats-next-gen locally.

I first downloaded the code from https://github.com/hzi-braunschweig/SORMAS-Stats-next-gen and unzipped it.

Then, I set the R PATH to where the example-app.Rproj is saved on my PC.
However, after I run shiny::runApp(), I got the following error message.

image

Your Github instruction also mentioned something about Docker and "The container uses these environment parameters for configuration". Do I need these, even if I just want to run locally from R? If so, how should I get sormas-postgres running?

I simply need a step-by-step instruction that works....

Thanks!

Jie

@bernardsilenou
Copy link
Collaborator

@jielab
The error message is because R cannot connect to the sormas DB because there is none.
If you want to run sormas-stats locally, then you must not have a docker instance. However, you first need to have sormas app installed and running on your machine. The easiest way to have sormas running on your PC is to set up the docker instance, you can get more information here https://github.com/hzi-braunschweig/SORMAS-Docker . Linux OS is better.

After having sormas running and testing that you can connect to the DB from R, then you can launch the sormas-stats app.

@bernardsilenou
Copy link
Collaborator

@jielab
Copy link
Author

jielab commented Jul 23, 2022

Thanks, Bernard!

The SORMAS software is very powerful and comprehensive. But it is also quite complicated.

Is there a way to tease apart a couple of simple R script or package that could be used to draw the two plots shown in your paper (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9159465/)? I have a text file with detailed information for ~1,000 COVID-19 cases. I know who transmitted to whom at what date. I am looking for an easy-to-use R package to draw the transmission chain and estimate basic transmission dynamics parameters.

Thank you very much & best regards,
Jie

image

image

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

2 participants