QuintineSol / DCiA

Data Consultancy in Action
0 stars 0 forks source link

Investigate R (back-end) to Python (front-end) #12

Closed imbanunes closed 4 months ago

CharlotFranssen commented 4 months ago
WouterMulder9 commented 4 months ago

We can integrate R with Python using the package “rpy2”: https://marketsplash.com/tutorials/r/how-to-integrate-r-with-other-programming-languages/. However, instead of using Python, we can also use an R package instead called “shiny”: https://shiny.posit.co/. This package enables us to build a web application directly from R scripts. It is especially useful when the application primarily involves statistical analysis or data visualization.

Based on this cheatsheet: https://rstudio.github.io/cheatsheets/html/shiny.html, it looks quite easy to work with.

WouterMulder9 commented 4 months ago

Maybe could add some extra information on the up- and downsides of both methods, which would not only include the perspective from the programmer, but also the ease of use for the user, especially considering that the users are not in posession of a very technical background. And thus should have a big impact on the eventual decision made

QuintineSol commented 4 months ago

Integration with rpy2 (Python Frontend): Pros (Programmer Perspective):

Cons (Programmer Perspective):

Ease of Use (End-User Perspective):

Integration with Shiny (R Frontend): Pros (Programmer Perspective):

Cons (Programmer Perspective):

Ease of Use (End-User Perspective):