All Questions
Tagged with htmltools htmlwidgets
10
questions
2
votes
1
answer
299
views
How to use htmltools::attachDependencies?
Here is an example of how I "manually" add a HTML dependency to a datatable. This works fine. When I try with attachDependencies, the dependency is not attached.
library(DT)
library(...
1
vote
1
answer
405
views
Print HTML formatted text in Jupyter with R from the list of citations of loaded packages
I have a R variable containing some html content inside, for exemple :
myvar = "<h3>Section Title</h3>"
I would like to print it not as <h3>Section Title</h3> but as ...
2
votes
0
answers
446
views
Add an interactive Check Box to a Flexdashboard in R
I'm building a flexdashboard out in an RMarkdown document, but I've run into issues with interactivity. So I've gotten a solution in shiny up and running, but the issue is that at my place of work we ...
0
votes
2
answers
397
views
htmlwidgets::saveWidget produces html file with default style="padding: 40px"
By default, the html document created by the htmlwidgets::saveWidget which use htmltools (for example, htmlwidgets::saveWidget (reactable(iris))) has the following attributes in the body tag: <body ...
0
votes
2
answers
840
views
R Obtaining a self-contained html file for tag list
I hope somebody can help me with this. I have a package that uses htmltools and reactable to produce html reports for some operations, for example:
columns_def <- list(
ProjectID = reactable::...
1
vote
1
answer
199
views
HTML code generation for generated graphs in R
How to generate HTML code and assign it to a variable in R without saving it in an HTML file?
(i.e)
the function must be like
p <- pairs(data)
res <- htmlcodefunction(p)
res
output must be ...
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 =...
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 ...
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....
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 ...