Skip to main content

Questions tagged [htmltools]

htmltools is an R package that contains tools for generating HTML output directly from R.

htmltools
0 votes
1 answer
31 views

appendContent can't be used in a Shiny render call

The funciton addSearchGoogle from leaflet.extras is throwing this error in a Shiny-app: Warning in renderWidget(instance) : Ignoring appended content; appendContent can't be used in a Shiny render ...
SeGa's user avatar
  • 9,719
0 votes
1 answer
49 views

Saving svg generated in shiny

I am trying to save an .svg that I generate inside a shiny app using htmltools (MRE below). This requires adding the svg namespace to the svg tag with xmlns:xlink="http://www.w3.org/1999/xlink&...
smartse's user avatar
  • 1,285
0 votes
1 answer
63 views

How to write/share an html document created in R using crosstalk and leaflet

I've created a filterable map using crosstalk and leaflet in R, and I'd like to share this with coworkers as a standalone document: library(leaflet) library(htmltools) library(htmlwidgets) #example ...
Eric's user avatar
  • 1
0 votes
1 answer
50 views

Print single charts via loop with highcharter in rmarkdown

I would like to print single charts created in a for loop as tabbed content using the packages rmarkdown and highcharter. So far i have only succeeded in displaying all the graphics in one tab. The ...
user avatar
1 vote
1 answer
85 views

Why my Html function in R is not working:?

This is my code: card_function <- function(title,paragraph,tags){ div( class = "card", div(class = "header"), div( class = "info", p(class = &...
JohnBones JohnBones's user avatar
0 votes
0 answers
831 views

Updated htmltools doesn't install anyway

In Rmarkdown my problem is Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace 'htmltools' 0.5.6 is already loaded, but >= 0.5.7 is required Calls: ... ...
Tofa Ahammed's user avatar
1 vote
1 answer
54 views

Grandchildren elements are not rendered, using R htmltools::tagList to generate HTML for paged pdf

I am trying to create a paged pdf report in R, using pagedown together with htmltools::tagList. Each page in the report is supposed to bring together field survey results, mainly images ande tables, ...
v.eriksson's user avatar
1 vote
2 answers
84 views

Insert image (file or R object) into existing html file from R script

I include two ggplotly() graphics in a html file, eg. library(ggplot2) library(plotly) library(htmltools) g1 <- ggplot(data=data.frame(x=1:10, y=1:10)) + geom_point(aes(x=x, y=y)) g2 <- ...
user2955884's user avatar
0 votes
1 answer
163 views

R Shiny Add Icon To tag$button

I'm trying to render a table in R Shiny that has a name, file, or url with a download button column that opens a new tab based on the data in the row. I'm unable to have the htmltools tag show an icon ...
Curtis's user avatar
  • 181
0 votes
0 answers
17 views

Taglist for horizontal widget alignment in RStudio

I have three plotly plots as html widgets which I want to combine into one html. This one does the trick but I want the plots (fig_current, ...) to be saved horizontally after one another and scroll ...
math_ist's user avatar
1 vote
0 answers
172 views

How can I correctly resize all plotly plots encapsulated in a javascript tab?

I am new to handling html objects from R and I am having an issue while trying to create html tabs from named lists (the target document is html pages obtained from RMarkdown). Long story short, while ...
MiddleC's user avatar
  • 11
0 votes
1 answer
78 views

Shiny reactable list object in tags$button on click

So I have a situation where I would like to use an object in a tag$button(). This is to work around the fact that the columns may change. It works on the first click and then stops working and the ...
A-A-ron's user avatar
  • 27
0 votes
1 answer
125 views

How to load a local HTML file in R with htmltools?

I'm having a hard time loading a local HTML file. I tried with xml2 and it gives an empty file. With htmltools and its function includeHTML I get an error message. library(htmltools) rawHTML<-...
laurent_grouet's user avatar
0 votes
1 answer
126 views

ggVennDiagram in lagList in R MarkDown

I am trying to embed Venn Diagrams to my report made in R MarkDown. I have dinamic number of graphs so I generate them by for loop. I know that R MarkDown has "problem" with loops but I find ...
tomsu's user avatar
  • 375
1 vote
2 answers
119 views

Subscript in R DT's footer with withTags()

I'm trying to add a superscript to a DataTables footer in a Shiny app (similar as here to the rownames/body). library(shiny) library(DT) ui <- fluidPage(dataTableOutput("table")) server ...
bathyscapher's user avatar
  • 2,079

15 30 50 per page
1
2 3 4 5 6