Installing Shiny App in dhis2

Hi.

Has anyone ever tried to install shiny app in dhis2?

I am not able to install my shiny app. I get an error when uploading the zip file: Manifest file missing.

Does dhis2 support shiny apps?

Kindest regards - Isaiah

···

Isaiah Nyabuto
+254 729 572 616

Bsc. Health Records Management & Informatics, JKUAT.

Hi Isaiah,

Shiny apps are written in the R programming language, so you would need to run this on an external R server, and then use another app (I guess) to connect with DHIS2 to the Shiny server.

DHIS2 itself has no capability to run Shiny apps, which must be written in pure HTML and JavaScript and utilize only the native API of DHIS2. If you are using external services, such as Shiny, you would need to take that into account in your DHIS2 facing app.

Regards,

Jason

···

On Mon, Dec 18, 2017 at 11:03 AM, Isaiah Nyabuto isaiahnyabuto@gmail.com wrote:

Hi.

Has anyone ever tried to install shiny app in dhis2?

I am not able to install my shiny app. I get an error when uploading the zip file: Manifest file missing.

Does dhis2 support shiny apps?

Kindest regards - Isaiah


Isaiah Nyabuto
+254 729 572 616

Bsc. Health Records Management & Informatics, JKUAT.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Hi Jason,

Thanks for the clarification.

I suppose running the app externally will work well in this case. No need to write another app to connect shiny server with dhis2.

Thanks.

···

On Dec 18, 2017 22:54, “Jason Pickering” jason.p.pickering@gmail.com wrote:

Hi Isaiah,

Shiny apps are written in the R programming language, so you would need to run this on an external R server, and then use another app (I guess) to connect with DHIS2 to the Shiny server.

DHIS2 itself has no capability to run Shiny apps, which must be written in pure HTML and JavaScript and utilize only the native API of DHIS2. If you are using external services, such as Shiny, you would need to take that into account in your DHIS2 facing app.

Regards,

Jason

On Mon, Dec 18, 2017 at 11:03 AM, Isaiah Nyabuto isaiahnyabuto@gmail.com wrote:

Hi.

Has anyone ever tried to install shiny app in dhis2?

I am not able to install my shiny app. I get an error when uploading the zip file: Manifest file missing.

Does dhis2 support shiny apps?

Kindest regards - Isaiah


Isaiah Nyabuto
+254 729 572 616

Bsc. Health Records Management & Informatics, JKUAT.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Hello Team I check the following one ,already open the Shiny apps are written in the R programming language, so How can I connect with DHIS2 to the Shiny server. ths is my challenge .

is thier any code written after open it .

Thanks,
Betty

Hi Betty,

You can connect Shiny Apps to DHIS2 with only a few lines of code.

Have you seen the recent R - DHIS2 integration guide?

I would recommend using the {datimutils} to connect to DHIS2; it has several useful functions to get you quickly started with the analytics (the most interesting part), and has support for mutiple users.

Let me know if I can help in any way.

Thanks,
Isaiah

4 Likes

Thanks for your unlimited support but still am not solved the problem ,
Could you have an other mechanism to show the steps or if you have any vidio or some thing else .

Thanks,
Betelhem

Hi @Betelhem_simachew

There are a few different ways to run a shiny app and I wanted to offer a bit more information in addition to my original post above.

  1. Directly from Rstudio- This would only allow you to run the app locally but might be good if you just want to distribute the app to a few colleagues who also have RStudio installed.

  2. Using Rstuido’s shiny server (Download Shiny Server - RStudio) There is an open source version of this available for various operating systems. Rstudio also has several different commercial versions which offer more functionality.

  3. There are also services such as shinyapps.io which allow you to run shiny apps when you do not have (or do not want to manage) your own infrastructure.

I assume that you want to allow others to view your app, so I would probably recommend to start with shinyapp.io . You obviously carefully consider any security issues related to running a shiny app on a third party site. That is probably the easiest way to get started.

If that is not an option for you, there is a lot of information on the Internet about how to install and configure a Shiny server. However, it will require a fair amount of system administrations skills in order to get such a service running and to secure it. The RStudio community and technical support is usually quite helpful, so you can also reach out there if you get stuck.

Hope this helps and good luck.

Regards,
Jason

1 Like