Questions tagged [htmltools]
htmltools is an R package that contains tools for generating HTML output directly from R.
htmltools
6
questions
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.
...
8
votes
1
answer
2k
views
Clicking a leaflet marker takes you to URL
Within the leaflet package for R, is there a way to click on a marker, and be directed to a URL?*
Here's the JS solution.
In R, to add a Popup with a URL:
library(leaflet)
content <- paste(sep =...
7
votes
1
answer
3k
views
DT Shiny different custom column header by column
my css skills are extremely limited but assuming the following example:
sketch = htmltools::withTags(table(
class = 'display',
thead(
tr(
th(rowspan = 2, 'Species'),
...
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 ...
2
votes
1
answer
236
views
Apply a recursive function to a nested list while preserving the classes of sublists
I have a nested list called inputs:
library(htmltools)
library(shiny)
inputs = tagList(
selectInput('first', 'FIRST', letters),
checkboxInput('second', 'SECOND')
)
str(inputs, max.level = 1)
...
9
votes
3
answers
21k
views
Text to be written must be a length-one character vector
After installing the new version of shiny (1.4.0) package, I face a strange error message
> Warning: Error in writeImpl: Text to be written must be a length-one
> character vector [No stack ...