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?
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>