29,478 questions
3
votes
1
answer
72
views
How to access the value of a reactive output inside the browser console with jQuery?
I have an app that uses a conditionalPanel that relies on a reactive value. Here's a basic example:
library(shiny)
ui <- fluidPage(
fluidRow(
actionButton("button1", label = "...
0
votes
1
answer
132
views
Unable to download .xpt file using xportr package
I am able to write a valid xpt file (that SAS can read) when I use the following code
library(xportr)
library(tibble)
# Create an example data frame
df_xp <- tibble(
ID = c(1, 2, 3),
Age = c(...
2
votes
2
answers
88
views
How to adjust margin between radio button and its label in R Shiny?
This is a very pesky, annoying problem I've been wrestling with. I have 3 radio buttons in line, that I am trying to fit into a well panel which fits into a sidebar panel. Assuming we don't change the ...
0
votes
0
answers
115
views
Deploying a Shiny app on a shared work drive
I'm struggling to find a solution to hosting a Shiny app on a shared drive. My company has extremely restrictive IT/security policies. I've been tasked with making a number of Shiny dashboards for ...
1
vote
1
answer
146
views
Add eye icon to Shiny passwordInput
I am creating a Shiny app with a login. For this I'm using the passwordInput function to let the user fill their password:
library(shiny)
ui <- fluidPage(
passwordInput("password", &...
2
votes
1
answer
117
views
How to align the data upload button with other types of button?
I am writing an R Shiny app and use CSS to format the buttons on the header and footer of the page. I am running into a sticky situation with the Upload button, where no matter how I configure, it ...
Advice
0
votes
5
replies
97
views
R Shiny - Is there a way to obtain all inputs whose name ends with a suffix as reactives?
I know I can retrieve all inputs as a list of reactives with reactiveValuesToList but how would I go about getting only those with a given suffix (e.g. *-filter)?
I would need it to feed observeEvent, ...
0
votes
0
answers
60
views
Shiny nested module using DTedit
Assuming following app:
library(shiny)
library(DTedit) # install via devtools::install_github('jbryer/DTedit')
# outer module ui
outer_ui <- function(id) {
ns <- NS(id)
# inner module ui
...
Best practices
0
votes
6
replies
80
views
Loading additional functions into a Shiny app
I am developing a Shiny app that allows to download logdata from a database. Users might not necessarily need the "raw" logdata but some kind of different "shape of data", e.g. ...
1
vote
2
answers
104
views
Using leaflet in R shiny to zoom to a postcode entered by user
I've collected longitude/latitude coordinates of roads in Hertfordshire. I want the user to enter a postcode in the app, and for the app to center the map on that postcode. The map has dots for each ...
Advice
0
votes
3
replies
87
views
R Shiny - observe two reactive inputs and get the values for the one that changed
How do I know which reactive inputs from a list of inputs has changed and use only its values to perform some action?
For instance, in this code, I'd like to update the input$test with either the ...
2
votes
1
answer
53
views
TypeError $table.DataTable is not a function when rendering a shinylive app with R
I'm trying to develop a shiny app that can be hosted on a website via the r-shinylive app. In this app, I want to have two tables. I would like the user would be allowed to select cells in the upper ...
2
votes
2
answers
58
views
ShinyApp that pulls from Google Sheet
I am trying to make a shinyapp that uses location and character data from a Google Sheet to generate a map.
library(shiny)
library(leaflet)
library(tidyverse)
library(googlesheets4)
library(shinyjs)
...
1
vote
1
answer
87
views
Reorder variable choices in select_group_server() [duplicate]
I want to change the order of the drop down choices in the below code. Initially I thought the choices seem to respect the order for the df but I tested it and it is not correct. I have added an order ...
2
votes
1
answer
112
views
Position shiny button and text with image
I'm looking for a solution to better place action button and text in a Shiny application.
library(shiny)
library(shinydashboard)
ui <- pageWithSidebar(
headerPanel("renderImage example"...