I simply want to render a .gif file in an R shiny app. Is there a simple way to do this? I was unable to find a solution in the documentation.
Asked
Active
Viewed 3,511 times
1 Answers
9
Try this:
library(shiny)
ui <- fluidPage(
img(src="sample.gif", align = "left",height='250px',width='500px')
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
Make sure that the app.R has a folder called www where the gif is saved.

Mr.Rlover
- 2,523
- 3
- 14
- 32