Questions tagged [shiny]

Shiny is an R package that makes it easy to build interactive web applications using only R.

0
votes
1answer
10 views

How to RenderTable output to tabPanel in NavBar page + Rshiny app

I am building a dashboard page where the user uploads a file and on clicking the actionbutton it should run the server code and show the output and also allow to download the output as file. Below is ...
0
votes
1answer
15 views

Fix a variable in SelectInput (RShiny)

I have a selectInput and want to fix one input variable, i.e. you can choose different variables, but one variable is always selected. How can I program this? Thanks in advance.
0
votes
0answers
11 views

Reactive Data, transforming and overwriting

I'm fairly new to R Shiny, and I'm having some problems with reactive Datasets. My idea ist, to load a dataset, do some calculations on it, print the outcome. This is no Problem if I set the dataset ...
0
votes
0answers
6 views

Force Plotly to display all categories in xaxis

How do I force plotly to display all the categories in the xaxis? As you can see below, dates 23 to 31 are not shown by default. I have to drag the graph around to view them
0
votes
0answers
15 views

shiny app with data from database works locally but not in shinyapp.iso

I wrote a simple shiny app, with data comes from database. here is my code: library(RODBCext) library(RODBC) library(shiny) ui <- shinyUI( pageWithSidebar( headerPanel("Hide Side Bar ...
-1
votes
0answers
16 views

Select multiple nodes in force network graph and display names r shiny

I have a force graph in r shiny (library(networkD3)) and I would like to store the name of a node when I select it and when I select multiple nodes in order to use selected nodes in a further analysis?...
1
vote
0answers
19 views

How can I update a slider via updateSliderInput when also loading rhandsontable in a shiny app?

it seems to me that if I use a rhandsontable in a shiny app it creates a problem with the normal way to update a slider with updateSliderInput. In the example below the click of the button should ...
1
vote
0answers
21 views

R: How can I cache items in in memory in Shiny?

I am currently experiencing issues with caching items for use within Shiny (in R) and would like to know the correct way of doing this. An example would be that I need to load a large data.table ...
1
vote
1answer
20 views

Shiny: Independently navigate two tabsetPanels

Is it possible to navigate two menus independently in Shiny? I would like to have two tabsetPanels (see the figure below), but if I change between tabs in the upper menu, I want the selected panel ...
-1
votes
0answers
20 views

How do I restrict collection of files when trying to publish my R Shiny app? [on hold]

When trying to publish, under "Publish Files From: ~" I see all files in my entire computer. How do I only collect the R Shiny app I would like to publish? Here is what it looks like when I click "...
1
vote
0answers
20 views

R Shiny: create reactiveValues object with input$ values

I would like to create a reactiveValues object in Shiny whose contents are defined the values contained in input widgets. I managed to do it, but my implementation seems to be unnecessarily clunky: ...
4
votes
0answers
17 views

R flexdashboard tabset renders poorly on server

I am using a tabset in my flexdashboard and it isn't coming through when I post to shinyapps.io The image on the left is how it looks locally and how I want it to look. The image on the right shows ...
0
votes
0answers
10 views

Rshiny timevis and shinytree bug? tree not rendered when used with timevis

I am new to R and shinystudio, Im trying to make an agenda with filters for courses. It already works with the vanilla checkboxes but a tree would be better. When I dont use the timevisoutputs, the ...
4
votes
2answers
39 views

R Shiny - Display static text outside sidebar panel

I want to display static text outside of the sidebar panel in Shiny. I am able to display the text inside the sidebar panel. However, if I try to display text outside of the sidebar panel then I get ...
1
vote
0answers
21 views

Download multiple files to one PDF shiny

I have an app with multiple pages that each have two plots and two tables. Is there a way to download all 4 as one file? A PDF would be nice but if there's a different file type that would work ...
0
votes
1answer
15 views

Shiny button within nested module not showing up; namespace issue?

I'm trying to scaffold together a basic dashboard using the shinymaterial package (https://ericrayanderson.github.io/shinymaterial/) but having a slight issue where my dropdown menus (usually ...
0
votes
0answers
21 views

How to align the data table according to the user's selection in RShiny

I am currently developing a shiny app and I face an issue with the dynamic alignment of the data table. The code used is ui.R shinyUI(fluidPage( dashboardPage( dashboardBody( tabItems( ...
0
votes
0answers
14 views

Deploy App in Shiny but application fail to start

I was trying to deploy an app in shiny. I was using a package called 'gplots' with the heatmap.2 function. However, when I try to deploy this app, it gives me this error: error image can any body ...
0
votes
0answers
21 views

shiny: multiple conditional panels within main panel is not working

I am trying to code an application for linear and multiple regression using shiny, I have an issue with multiple conditional panels, that, It does not check for conditions and executes first ...
0
votes
0answers
36 views

How to load .RData and get the input values back from Rshiny application?

Questions:- I want to load the .rdata file saved in the below app through the existing shiny application when I relaunch it to get the values stored in the .Rdata How do I add the action button "Load ...
0
votes
1answer
17 views

R Shiny Save File by Unique Name

I have developed a Shiny app where users have the option to save machine learning models (to be able to use them later). These models get saved in the default shiny directory. The issue is that, ...
-1
votes
0answers
38 views

how to remove V1 V2 V3 V4 above my variable names in rshiny

I am trying to get rid of the V1 through V4 above my variable names. Although I get no V1 through V4 when I just run it in R, I keep getting it only in Shiny.
2
votes
1answer
29 views

Saving ggplot from Shiny gives blank png file

I am trying to save a ggplot2 object made in a shiny app. Basically this code allows .xlsx files to be uploaded and plots created after selecting from some options. I have then included a download ...
1
vote
0answers
24 views

Enable a shiny app to “remember ” the settings changes

I have a functional shiny app whose logic is described below: Logic of the app: The user chooses one of the Tests by using the selectInput() "Label". This is the main operation and then he is able ...
0
votes
0answers
13 views

cannot authenticate r shinyapps account with rsconnect

Trying to install reconnect and authenticate it with R-shiny. However, it seems unable to find the function file size. Here is the installation: > install.packages("rsconnect", type = "source", ...
1
vote
1answer
21 views

shinyApp : Getting a folder as input and use the files inside the folder as input of a R function

I'm new to shiny, and I'd like to create a basic app, that gets some information from the user, and then run some R codes in the background and saves the result. (I may end up plotting the result, but ...
1
vote
0answers
24 views

DT Editing in Shiny application with client-side processing (server = F) throws JSON Error

I have a Shiny Server application in which the user can edit a datatable, after which some dependent summary statistics of the table update accordingly. I am hosting this app on a fairly slow ...
1
vote
0answers
19 views

Rmarkdown not including Shiny plots in a loop

I have plotly objects stored in a list. I have a rmarkdown and am including shiny app to call the plotly objects. I am getting error:- Error in [[: subscript out of bounds [No stack trace available]. ...
1
vote
0answers
13 views

Update a datatable based on visNetwork drop down node selection in a shiny app

I have a simple shiny app which displays a small network. As you can see when I click on a node the datatable below is updated accordingly. The issue is that this does not happen when I choose a node ...
-1
votes
1answer
20 views

pickerInput in Shiny: How to populate choice parameter from dataframe? [on hold]

In my R code I fetch some information from a database and store that in dataframe. I want to use the first columns of that fetched dataframe as choice parameter in pickerInput from shinyWidgets. Can ...
-1
votes
0answers
33 views

How can I Save a project from Rshiny application?

I am very new to R shiny codes. I want to make an application which would allow users to save the selections and the project which could be availed for later usage. For example lets say I have ...
0
votes
0answers
20 views

Where are the CSS and Javascript files located, which Shiny generates during rendering?

Since Shiny Apps is a Web App service, it must generate HTML, CSS and Javascript files during output, correct? I have written my entire Shiny Code in ui.R, server.R, global.R and with some of the ...
1
vote
0answers
11 views

Update a data table based on a network edge selection in a shiny app

I have a simple shiny app which displys a small network based on the dataset below. As you will see when the user clicks on a node an take a table with the connections of this node as you will see. ...
0
votes
0answers
11 views

shiny app deployment error in value[[3l]](cond): trying to use cran without setting a mirror

I am trying to deploy this shiny app for about 2 hours now. When i run it on my system, it works just fine. However, when I try to deploy I get the following error message in R: Error in func(fname, ...
0
votes
0answers
19 views

mapedit change color and opacity

I have a simple app that allows a user to draw a feature. How can I also allow the user to select the fill colour and opacity by providing a hex code. Reproducible example: library(mapedit) library(...
0
votes
1answer
49 views

How to achieve Basic Stats with Shiny? Error in tapply: arguments must have same length"

I am developing a Shiny App to allow experimenters to quickly visualize and interact with their data. At this time, the Shiny app is programmed to do three things: Print the header info. of the ...
1
vote
1answer
26 views

How to convert string input(numbers with spaces) to dataframe in Shiny (R)?

In ui.R textInput("numbers","New try") # Example input, 2345 654774 647 In server.R x = as.numeric(unlist(strsplit(input$numbers, ''))) Output is 2 3 4 5 NA 6 5 4 7 7 4 NA 6 4 7 This is ...
2
votes
0answers
36 views

remove mapedit features programmatically

With mapedit it is possible to clear drawn features using the 'trash' icon built into the drawbar UI. It is also possible to clear features associated with the leaflet map using clearMarkers() and ...
0
votes
0answers
29 views

Not able to access large datatable in R [on hold]

I want to read a xlsx file, having 3 sheets, one having approx 60k rows and 20 columns and display it in shiny table. I have used read_excel to read and DT::datatable to display in shiny. I am unable ...
0
votes
0answers
35 views

Having difficulty making a self-calculating handson table in R

I am making an applet that should already have a handson table generated upon opening. When the user finishes inputting data into the one column of the handson table, he presses the submit button, ...
1
vote
0answers
23 views

Deactivate “busy status” in R Shiny application

How can I prevent the RStudio Shiny application server from sending "busy/idle" status updates? When observing my websocket traffic in my app, I noticed that the server is constantly sending updates ...
0
votes
0answers
17 views

R rhandsonetable in htmlTemplate / JqueryLayout not working

I want to create a shinyApp with a custom UI, using the htmlTemplate function from shiny and the JQuery Layouts from here. Displaying tables using the DT framework works fine, but I would like to use ...
0
votes
1answer
54 views

Conditional Display of Plots in Shiny

I'm trying to create a shiny app that allows user to display the kind of plot they want to show. I've tried using a simple if else statement for the display of plot, however, it does not seem to ...
0
votes
0answers
14 views

Open file in fileserver from client side with Shiny App in R

I have a Shiny App running on a local server and a local fileserver from/to which the app modifies files. I would like to make it possible for clients connecting from the same network to open this ...
0
votes
0answers
22 views

scroll to row based on user event, R/DT/Shiny, without using paging

I am trying to get a datatable (DT) to scroll to the proper row/line when hovering over a point on a map. I can do things like have the row be selected, but I cannot figure out how to make the ...
0
votes
1answer
31 views

Access uploaded file in shiny in other abc.r files except server.r

In my server.r I am reading uploaded file using dat <- reactive({ if (is.null(input$datafile1$datapath)) { dat <- read.csv("D:/sample_withbatch.csv") ...
1
vote
0answers
22 views

R ShinyWidgets Embedded dropdownButton

The dropdownButton function from shinyWidgets is great because I can use it to easily create Check / Uncheck all options in a checkboxGroupInput like this. However, let's say I want to put two (or ...
0
votes
1answer
40 views

Shiny - Editing rhandsontable tables with multiple input and output elements

I've been working with this post as a starting point. Update handsontable by editing table and/or eventReactive Very helpful, but I'm trying to extend it to specify the number of values in the table, ...
0
votes
0answers
13 views

Reasons event_data() does not register full range of surface when first dimension < second dimension

Consider the following examples of a 3D surface plot produced with plotly and shiny. library(shiny) library(plotly) # Define UI for application that draws a histogram ui <- fluidPage( # ...
2
votes
0answers
31 views

How to insert applet into shiny R

I would like to include applet for visualizing molecular structures using shiny (I'm a beginner in html and shiny) and I have two problems. First, when I include the html file it generates an error "...