Explore Courses Blog Tutorials Interview Questions
0 votes
in R Programming by (50.2k points)
In an R shiny app, I just want to display a .gif file. Is there a simple way to do this?

1 Answer

0 votes
by (108k points)

You can simply try the following code in R programming:


ui <- fluidPage(

  img(src="sample.gif", align = "left",height='250px',width='500px')


server <- function(input, output, session) {


shinyApp(ui, server)

Note: You have to make sure that the app.R has a folder called www where the gif is saved.

Browse Categories