Questions tagged [htmltools]
htmltools is an R package that contains tools for generating HTML output directly from R.
htmltools
82
questions
3
votes
1
answer
3k
views
R Leaflet plot ship direction
I have information on the location of vessels/ships and the course they are steering. I'd like to plot them on a leaflet map with a custom icon which looks like a ship. I found the "tags" icon from ...
11
votes
4
answers
12k
views
How to store r ggplot graph as html code snippet
I am creating an html document by creating various objects with ggplotly() and htmltools functions like h3() and html(). Then I submit them as a list to htmltools::save_html() to create an html file.
...
7
votes
2
answers
4k
views
How to add title to a networkD3 visualisation when saving as a web page?
I have created a interactive visualisation using the following code:
library(networkD3)
nodes = data.frame("name" = c("node1", "node2","node3", "node4", "node5", "node6", "node7"))
links = as.data....
2
votes
1
answer
7k
views
Rmarkdown - printing a list of objects without showing those pesky [[indices]]
This will be a little wordy, as without proper context I cannot see how I can ask my question.
Without going too much into details, in my summarytools package, I have dealt with by() objects by ...
0
votes
2
answers
450
views
How to use tags with special characters in htmltools inside rmarkdown document?
In a rmarkdown document, how may I use HTML special characters inside a tag with htmltools package?
If we write in a r chunk of a rmarkdown document something like this
htmltools::tags$th("μ")...
2
votes
1
answer
91
views
Boolean attributes in htmltools tags
I can create an HTML option tag using
htmltools::tags$option("abc", value = 1)
and I get
<option value="1">abc</option>
But how do I add the boolean attribute selected to it, to get
&...
3
votes
1
answer
4k
views
R: add title to networkD3 plot and save
I am interested in adding a title to a forceNetwork graph created with NetworkD3 and exporting the html with magrittr.
A solution was found in the R: HTML Tag Object help page in order to add a ...