| tw_widget | R Documentation |
Create a tiddlywiki widget from htmlwidget
tw_widget(widget, is_cat = FALSE)
widget |
an object of htmlwidget |
is_cat |
whether to show results on screen |
a new tiddlywiki widget
library(leaflet)
## Not run:
content <- paste(sep = "<br/>",
"<b><a href='http://www.samurainoodle.com'>Samurai Noodle</a></b>",
"606 5th Ave. S",
"Seattle, WA 98138"
)
widget <- leaflet() %>% addTiles() %>%
addPopups(-122.327298, 47.597131, content,
options = popupOptions(closeButton = FALSE)
)
tw_widget(widget)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.