All Questions
28
questions
0
votes
0
answers
27
views
How to have a ReactShinyInput inside a ReactShinyWidget?
I have just started playing with the reactR package in the hope of having React elements usable with Shiny R.
I have got project with the scaffoldReactWidget function setup and working quite nicely so ...
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 ...
0
votes
1
answer
51
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&...
0
votes
1
answer
179
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 ...
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 ...
0
votes
1
answer
331
views
How to evaluate a list of cards in bslib::layout_column_wrap?
I am trying to display a list of cards in a 2d grid using the function bslib::layout_column_wrap(). However, I get a 1d grid with the cards positioned in one column instead of multiple columns. See a ...
3
votes
1
answer
417
views
How to display a SVG image in shiny
I would like to display in my web application an SVG image that I have hosted in the images folder. First I tried to display it with a tag but it didn't work:
ui <- fluidPage(
tags$img(src = &...
0
votes
1
answer
365
views
How do I attach a CSS dependency to my Shiny app with htmlDependency() and tagList() from htmltools
I'm trying to attach a custom css stylesheet to style my shiny app. However I haven't had much success. I know that there is many ways to do it, but according to chapter 4 of Outstanding UI with Shiny ...
1
vote
1
answer
576
views
How to add an icon in front of specific column name of reactable
R Gurus,
I am struggling with a unique problem with adding an icon in front of certain column names in a reactable.
library(htmltools)
library(dplyr)
library(tippy)
data <- as_tibble(mtcars[1:6, ],...
0
votes
1
answer
294
views
How to generate simple html table using Shiny and R without using renderTable function?
I'm really new to R/Shiny, I'm working on a project and I'm having a problem.
Indeed, according to what I learned on the documentation, the renderTable function makes it possible to generate a ...
1
vote
1
answer
301
views
Shiny Leaflet Slow with HTML Labels
I'm building a shiny app with a leaflet map that updates based on user selection. When I got to working on the labels for shiny, I noticed my performance dropped upon hitting my action button to ...
0
votes
1
answer
398
views
Change column header color
I have a Shiny app that displays a DT table. I would like to be able to change the color of the column headers (not the column header text color) from black to something else say #34a8eb. I tried the ...
1
vote
0
answers
87
views
Add dependencies of shinydashboardplus in shiny
Below is the code for shiny app that I am using.
shiny::shinyApp(fluidPage(
# Give the page a title
titlePanel("Telephones by region"),
# Generate a row with a sidebar
...
1
vote
1
answer
1k
views
How to align and draw borders on complex header for datatable in R shiny?
I am using the container to create the header using the example from here. I am looking to center align the 'Overall' and 'In-patient' header. I tried adding the align = 'left' parameter in th ...
3
votes
1
answer
642
views
Shiny app as function, where to put www/ folder, CSS, JS
I am attempting to convert a relatively complex shiny app (3-4 modules, 8 CSS/JS files) into a package with one external function that builds an instance of an app for a given input (build_myApp(...