Difference between Shiny and R Mark Down

Hi there,

As per my knowledge, R Mark down html file is a static web page, we can not take input from your, at run time. Since Shiny allow us to take input from users.

is it correct?

and any other difference is there?
please explain.

many thanks,
rao

Yes, Rmarkdown is a way to generate a document. Once the document is generated, it is static. This is useful to make reports that are nice-looking and easy to read (also these reports are reproducible and can be easily re-generated with new data, among other advantages).

On the other hand, Shiny is a way to generate interactive (dynamic) websites. Such a website is an interface that can call R functions on datasets, it's a way to enable the user to manipulate the data.

One important difference is that you knit your Rmarkdown once, on your computer, typically with Rstudio. Then any web browser can display it, and any webserver can make it available. On the other hand, Shiny is R code, so you need a webserver running an R interpreter.

However, if you have a need for it, note that:

  1. it is possible to include Shiny code in an Rmarkdown document, the result is a Shiny app (so you need R to run it)
  2. for some cases you can create interactive widgets in an Rmarkdown document without using Shiny, the result is purely html and javascript and can be run in a browser. Details here.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.