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.


How can it be corrected?



ui <- tagList(

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

shinyApp(ui, server)


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