Shiny App that include HTML files doesnt render images when is running in command

Why does running a shiny app in r studio show all the images that are added by html but not when running it in the batch?

For example, I have this simple app that calls an html file that contains 2 images, in r studio the app looks perfectly but when run from the batch it doesn't work.

It doesn't show any kind of error or warning just like it doesn't recognize the image.

image

How can it be corrected?

app.R

library(shiny)

ui <- tagList(
  includeHTML("www/htmlFile.html")
)

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

shinyApp(ui, server)

htmlFile.html

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>page1</title>
  </head>
  <body>
    
    <h3>Hello world!!</h3>
    <img src="img1.jpg"/>
    <img src="img2.jpg"/>
    
  </body>
</html>

This topic was automatically closed 54 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.