Questions tagged [shiny]

1

votes
1

answer
56

Views

Diagram doesn't show in Shiny

I have a Shiny application that shows the relationship between race and number of employees in Silicon Valley companies. The toolbar on the left side is visible but the plot is not showing. How should I change my code? Here is the code: library(shiny) library(ggplot2) library(dplyr) bcl
Viola
1

votes
1

answer
219

Views

R shiny modify a specific element in a reactive table

I have a small shiny app that is designed to read in from a data set, and then calculate the average time per element, grouped by category. My dataset is a more complicated version of: item time category apple 13 cat1 bobcat 6 cat2 cement 15 cat1 doomsday 15 cat1 elephant 7 cat2 after reading in t...
omgitsjessie
1

votes
0

answer
264

Views

Warning in gzfile(file, “rb”)

My application is running perfectly fine in local machine but when uploaded to shinyapps.io its throwing the following error. Warning in gzfile(file, 'rb') : cannot open compressed file 'model2.RDS', probable reason 'No such file or directory'. model2.RDS file exist in the same directory where ui.R...
1

votes
0

answer
364

Views

How to fix shinyapp error which is taking too long to startup?

My shiny app works fine locally, but when I deploy it on the server (this app), it's fetching following error: I looked at the logs and it says 'out of memory'. I checked that shiny allows memory usage up to 1 GB for free accounts. But when I looked at my app's memory usage it's hardly touching eve...
Piyush Verma
1

votes
1

answer
97

Views

Password recovery using email

I have a table called users with 3 columns (username, password, email). When a user forgets his password, he needs to insert his email to receive his password by email (password recovery). I have two questions: Why do I always get the message User does not exist? In the second observe, is there a mo...
Ester Silva
1

votes
1

answer
195

Views

R Shiny dynamic list variable to multiple rows

I am trying to create a sidebar that outputs the columns of a datatable and the number of unique values in each column. The code below works for the names but when it comes to the unique values I can only get it to display if the list variable is unlist()ed. I could not find any articles that talk...
terrangreen
1

votes
0

answer
73

Views

Difficulty getting htmlwidgets::onStaticRenderComplete to work with leaflet

I am using Shiny and trying to create synced leaflet maps that work with leafletProxy. The script which should run after the leaflet widgets have rendered doesn't seem to get called. library(shiny) library(leaflet) # Modified from mapview::latticeView sync
Tyler Smith
1

votes
1

answer
249

Views

Writing flatten data.frame in .csv from a Shiny app

I have a problem with managing a dynamic data.frame created in my Shiny app. Problem is, since it is handled through the server.R, I can't find a way to access it, flatten it into a vector then write it after my other variables (which are all text/numeric inputs). Working app can be accessed here :...
Samuel Tremblay
1

votes
1

answer
75

Views

Data validation when using rhandstable in Shiny

I have the following Shiny application to produce an editable table. library(shiny) UI
Henk Straten
1

votes
1

answer
92

Views

Adding colour filters in a shiny application

I have the following shiny app working with the titanic_train dataset (library(titanic)) library(shiny) library(ggplot2) library(titanic) library(dplyr) #Label as factors titanic_train$Survived
Henk Straten
1

votes
0

answer
225

Views

R Shiny App working locally but not on shinyapps.io

I have seen that this problem has happened to other people, but their solutions have not worked for me. I have my app.R file and a .RData file with the required inputs in the same ECWA_Strategic_Planning_Tool directory. When I run: library(rsconnect) rsconnect::deployApp('C:/Users/mikialynn/Document...
mikialynn
1

votes
2

answer
94

Views

How to have a tool tip on hover?

Is there any way I can have a tool tip or a pop over when I hover over the table column names. I basically want to have pop over which describes column names in R SHINY DATA TABLE. Following is my code which renders a table. I have tried to search a lot on all forums and could not find a working cod...
suteja kanuri
1

votes
1

answer
365

Views

Sys.setenv(“SNC_LIB” = lib_path_64) fails

I'm using the package RSAP to read SAP data. RSAP loads a SNC (Secure Network Connection) dynamic library and searching for it with the environment variable SNC_LIB. Depending on the local user system, this might be a 32 or 64 bit library. I'm setting the environment variable within my R script. But...
Guido Berning
1

votes
1

answer
1.3k

Views

RStudio Error (Windows): There is no package called 'shinydashboard'

Realted to this question It may be the same question as this, however it stood unanswerd I do have the same problem , that I can not load the library 'shinydashboard'. I found the question above, but the solution was only given for Ubuntu/Linux. I am using RStudio and Windows and couldn't use the so...
Sebbo
1

votes
0

answer
50

Views

shiny fileinput, client file upload automatically by session info

I am making a Shiny server app. I would like to add a local file path to the url session information and then automatically upload the file when the session starts. Do I need to know about javascript to do this? If you know how, thank you for your help.
user7040329
1

votes
1

answer
94

Views

R Shiny isolate() returns a date as an integer

I am trying to create an input form that adds a row to an existing dataframe. I used the method described here. The problem I am having is that I have two date input types that are transformed to integer with this code. Here is some sample data: x_df
Stan
1

votes
1

answer
740

Views

Download file from server to local directory using Shiny

I am not sure if I am understanding this correctly. Where should the data set that I want to download be in RStudio server? I do not want to deploy yet, so I am not using the Shiny server, but I want to use the download functionality and save the data set as a file in a local directory. I have u...
gccd
1

votes
1

answer
34

Views

Dynamic name for ggvisoutput in Shiny

Suppose I have the following code in server: df%>% ggvis(~ratio, ~height, fill = ~ps, key := ~id) %>% layer_bars() %>% bind_shiny('rds', 'ui_rds') And the following in ui: fluidRow( box(title = 'RD',width = 6, ggvisOutput('rds'))) The question is if the name of the output is variable and change in...
OmG
1

votes
0

answer
92

Views

Upload and store data to shiny

I am working on a RStudio shiny app that reads in a geojson file then creates a map using leaflet. I take my geojson file, and put it in my /data folder prior to publishing. Overall, everything works great. I am consistently changing some polygons in my geojson file, so I overwrite the old file and...
ak_47
1

votes
1

answer
163

Views

PDF in shiny application - Nothing appears

I made the following script to show 1.pdf, but nothing shows up after clicking on start. Any comments would be great. Appreciate! shinyApp( ui
Ester Silva
1

votes
0

answer
73

Views

Shiny Server on AWS not viewable on Chrome behind firewall

Hello Shiny / sysadmin / AWS gurus: I have Shiny Server running on an Ubuntu AWS instance here: http://54.163.27.74:3838/ I followed this R-bloggers post to get it set up, with custom TCP rules for 3838 (Shiny) and 8787 (RStudio). It was not viewable when I tried to access at work, where some firewa...
Dan Flynn
1

votes
1

answer
765

Views

How to select a data set on shiny app?

This is my first question as I'm struggling with learning programming... I'm trying to make a Shiny app that makes a plot according to the data set selected by the user. Yet I keep getting the following error:- ggplot2 doesn't know how to deal with data of class character even though I'm specifying...
David Jorquera
1

votes
0

answer
184

Views

Plot inside of hoverinfo in Plotly

I've a plotly bar chart with a hover event which plots another plot alongside the first one Is there a way to have the second plot show up inside of the hoverinfo box ? The code I used is as under: UI library(shiny) library(plotly) library(shinythemes) library(dplyr) library(png) ui
Dee V
1

votes
3

answer
396

Views

Uploading csv to SQL table using R shiny

I've been scratching my head trying to figure this out. So I've connected to the database but when I press the action button nothing is happening to the table. The CSV is being converted to a data frame. UI library(shiny) library(RJDBC) library(dbtools) library(jsonlite) library(shinyjs) library(DBI...
TheAnalyst
1

votes
2

answer
590

Views

Getting “undefined columns selected” in R shiny

I have a date frame file1, in which col V2 contains time and V3- V13 are the parameters. I want to plot time vs the parameters in R shiny . I am able to get the summary and table values, But in the plotting it says 'undefined columns selected'. Any pointer will help. The Summary and Table values com...
Tarun Das
1

votes
1

answer
29

Views

How can I make data uploaded to a shiny app usable and then actually use it?

I'm trying to build a shiny app and I've never done this before. What I want to do is allow the user to upload data from a CSV file of the user's choice that looks something like this: ID Date Name Amount 123 01/12/2018 John Doe 100 124 01/02/2018 Bob Smith 110 125 01/0...
Jennifer B.
1

votes
1

answer
1.1k

Views

Create a dynamic dataframe based on user’s inputs in R Shiny UI

I am running a regression model using an available training dataset, say 1000 observations and 5 independent variables. Now I want to run this model against a test dataset. So I am trying to fetch test dataset manually from user on Shiny UI. User should have an option to select number of observation...
Abhay Singh
1

votes
1

answer
133

Views

How to Focus on textinput field in alert combined with modaldialog in R?

I am building a Shiny app in which a user can open a modalDialog by clicking on points in a plot. The modalDialog contains a plot of the raw data behind the point clicked. The user is presented an actionButton linked to code to save the detailed plot in the modalDialog with a sweetalert swal message...
Mark
1

votes
0

answer
273

Views

I am trying to create one graph using plotly but keep on getting this error Error in arrange_impl(.data, dots)

I am trying to create one graph using plotly but keep on getting this error. Any help is appreciated Error in arrange_impl(.data, dots) : Evaluation error: argument 'value' is missing, with no default. Code looks like this: plot_ly(Graph_lost, x = ~Month_Year, y = ~Final_Series_AfterLost,type='sc...
Kajeet
1

votes
1

answer
229

Views

Error of infinite recursion in R(Shiny)

I am working on R(Shiny) that is working on a loan prediction model. I am trying to calculate loan amount for a particular method but it is showing me an error for infinite recursion and just like mentioned in most of the posts even I have tried options(expressions = 1000) value, but am still experi...
Geetanjali Bisht
1

votes
1

answer
34

Views

How do I call a list from the shiny server in the shiny UI?

Situation: In the server environment I define a list. I want to call this list in the UI-environment. Here is the code: library(shiny) ui=fluidPage( selectizeInput( 'chooser', 'Choose an Item', choices = mylist, multiple = TRUE ) ) server=function(input,output){ mylist=c('Fork', 'Tree', 'Truck', '...
nexonvantec
1

votes
1

answer
36

Views

shiny variables avoid Calculate

I use Shiny app for DBSCAN, I have a lot of sliderInput, let the user choose But because of the large data, a DBSCAN will wait a few minutes Do not know how to avoid double counting? I have tried to use isolate, it does not seem to perform Program Description The user selects sliderInput's eps and m...
KenChen
1

votes
0

answer
386

Views

Preserving formatting to Excel using Shiny downloadhandler

I wrote a code that formats to green if the index > 120 and to red if the index is < 80. It works when I view it in web browser. See below. But when I download the data using downloadHandler, the formatting is gone. How I preserve the formatting? Thank you. My code: server.R: function(input, output...
Ketty
1

votes
1

answer
226

Views

R Shiny selectize observeEvent on all choices made

I have the following Shiny app and I would like for the observeEvent to only trigger when all choices are made from the selectizeInput UI. The reason for this is that I have a dynamic number of maxItems (which i set arbitrarily to 2 for this example) so I cannot just base the observeEvent off the le...
J. Doe.
1

votes
1

answer
159

Views

Shiny App Fails Without Trailing Slashes

I am running a Shiny server behind a proxy as instructed in this post. URL with trailing slashes http://yhat.io/shiny/faithful/ works as expected. However, the URL http://yhat.io/shiny/faithful (without trailing slashes) gets redirected to http://yhat.io/faithful/, and it fails with 404 not found....
Tmas-Jc
1

votes
0

answer
96

Views

R Shiny: interactive renderTable for dynamic number for fileInputs

I am trying to create a Shiny app that uploads a dynamic number of CSV files and display them through renderTable. I used the answer from this link for the dynamic fileInput. I added an eventReactive to read the CSV files and a renderUI for the dynamic number of tableOutputs. I don't get any errors...
Souha
1

votes
1

answer
257

Views

Show a subset of data based on a selection in a Shiny graph

I have the following Shiny Application (it is actually a bit more complicated but this one is better for reproduction purposes): library(shiny) library(rhandsontable) library(shinydashboard) library(ggplot2) library(dplyr) library(twitteR) setwd('C:/Users/Marc/Dropbox/PROJECTEN/Lopend/bank_mining/te...
Henk Straten
1

votes
0

answer
191

Views

Converting shiny r markdown from downloadHandler to renderUI

I am trying to modify this example to add a pre-visualisation of the markdown report in the main Ui panel but I am not able to pass the parameters correctly using rmarkdown::render. shinyApp( ui = fluidPage( sidebarLayout( sidebarPanel( sliderInput('slider', 'Slider', 1, 100, 50), downloadButton('r...
ulrich
1

votes
0

answer
54

Views

How to enable browserURL function when using `learnr`

I am using learnr to build up in-class slides held by shiny.io. The codes I would like to show includes some calling an external API. The file is smoothly compiled and uploaded to shiny.io. However, when I ran the codes through the shiny server, I got an error stating that Cannot visit /tmp/RtmplHHf...
sammo3182
1

votes
1

answer
130

Views

Shiny: Error in plot.window: need finite 'xlim' values on page load

I am trying to create a barplot in R shiny. Data are coming from a csv file and they are filtered according to user's selection in selectInput and sliderInput controls. When the page is loading I am getting the error: Error in plot.window: need finite 'xlim' values. Then, when the page is fully loa...
elawat

View additional questions