cannot embed image or frame in shiny includeHTML()

417 views
Skip to first unread message

xiong xiong

unread,
Jul 31, 2013, 1:15:59 PM7/31/13
to shiny-...@googlegroups.com
by includHTML(), I am unable to add frameset and put image in HTML page?

Joe Cheng

unread,
Jul 31, 2013, 4:11:00 PM7/31/13
to shiny-...@googlegroups.com
Hi xiong xiong, please, when you ask a question to this list, describe precisely what you tried and what the outcome was. It's very difficult for us to help you without more detailed information--but we're happy to help if you can tell us more!


On Wed, Jul 31, 2013 at 10:15 AM, xiong xiong <xxeri...@gmail.com> wrote:
by includHTML(), I am unable to add frameset and put image in HTML page?

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

xiong xiong

unread,
Jul 31, 2013, 5:35:49 PM7/31/13
to shiny-...@googlegroups.com
Hi Joe, sorry for the inconvenience and really thank you for the reply. 

There is a html page in my shiny app and I need to imbed some pictures in it. In html page, "<img src="filetype.png" alt="File Type">" only returns:

the image "filetype.png" is in the same directory of the app.

In ui.r, includeHTML("help.html") to show the page.

Joe Cheng

unread,
Aug 1, 2013, 5:10:15 PM8/1/13
to shiny-...@googlegroups.com
The "filetype.png" file should be placed in a subdirectory of the app called "www", e.g. myapp/www/filetype.png. Keep the src "filetype.png", i.e. don't change it to "www/filetype.png".

xiong xiong

unread,
Aug 1, 2013, 5:38:28 PM8/1/13
to shiny-...@googlegroups.com
that works, thank you Joe!
Reply all
Reply to author
Forward
0 new messages