sendHTML | R Documentation |
Sends a piece of HTML code to a web page and adds it at the end
or the body
element. This function is a wrapper around sendHTML
method of
class Session
.
sendHTML(html = "", sessionId = NULL, wait = 0)
html |
HTML code that will be added to the web page. |
sessionId |
An ID of the session to which the HTML should be sent. Can also be a vector of multiple session IDs.
If |
wait |
If |
sendData
, sendCommand
, callFunction
,
openPage
.
## Not run:
# to run this example an installed web browser is required
openPage(FALSE)
sendHTML("Test...")
sendHTML("This is <b>bold</b>")
sendHTML("<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.