Dear Dean and others,
After two weeks of thinking, I don't understand how source an image in the code as the working directory is changing with user:
At the beginning, I paste getwd() and the path of the image in the package but when user change WD then it fails:
output$myImage1 <- renderImage({
list(src = paste0(getwd(), "/www/1.png"),
contentType = 'image/png',
width = 20,
height = 20,
alt = "This is alternate text")
}, deleteFile = FALSE ) # eo output$myImage1
I would need to reach the path of the package within the user computer ? am I right ?
Thank you very much for any help,
Cheers
Cha