Questions tagged [shiny]

0

votes
0

answer
13

Views

shiny html full page bootstrap carousel

I am begining in styling shiny apps. I want to create a create a full screen slider into a tabpanel of my application for my landing page. According to this snippet https://codepen.io/nikhil/pen/RPOXya , here's my application. The carousel is empty. How can I solve this issues (perhaps the in...
Wilcar
1

votes
1

answer
53

Views

Utilizing Popover (shinybs) within InsertUI function

I'm having issues with using the popover function in my Shiny app when I'm using insertUI. See my code below. library(shinyBS) library(shiny) #ui---- ui = basicPage( actionButton('show', 'Create a New Analysis') ) #server---- server = function(input, output, session) { #Show modal when button is...
M.Yosh
1

votes
2

answer
122

Views

Shiny Modules: Accessing and changing reactiveValues situated inside module`s server function from the outside?

I have a shiny-module which uses reactive Values to store its internal state. In the example below this is only used to output the number the input changed, but my real use-cases are more complicated. I now want to create a function which can be used to set one of these modules to the state of the...
Julian
0

votes
0

answer
4

Views

How to configure ShinyProxy Google OpenID logout-url?

I'm trying to add a sign out button to my ShinyProxy app: actionLink('logout', 'Sign Out', onclick = 'location.href='https://housemate.pgstevenson.com/logout';') by adding the logout url to my application.yml in the following format (per the documentation): logout-url: https://YOUR_AUTH0_DOMAIN/v2/l...
Paul
1

votes
2

answer
126

Views

download CSV using filtered dataframe RShiny

I've made an shiny app where I'm filtering a dataset using some values and then I would like to be able to download that filtered dataset. However, I'm struggling to understand how I can pass the filtered dataset to the csv downloader. It is a very large dataset so can't use the buttons available in...
Dom Burns
1

votes
2

answer
36

Views

How to pass string as column name in R [duplicate]

This question already has an answer here: How to call an object with the character variable of the same name 1 answer Dynamically select data frame columns using $ and a vector of column names 8 answers m ='jan' n = '5e' r = paste0('jan','5e','_results') 'jan5e_results' Now I want to use r's val...
noob
1

votes
1

answer
4.2k

Views

shiny renderUI error

I wrote a small Shiny application using renderUI. It ran correctly but the R console thrown out an error message Error in if (nchar(locus) == 12) { : argument is of length zero every time I ran this application. Here are my scripts. server.R: load('rapmsu.rda') convMSU
Ven Yao
1

votes
2

answer
1.6k

Views

Centering images horizontally in a shiny fluidRow

Is it possible to centre three images in one row within the shiny ui fluidPage AND have the width of each image fixed at 300px? To get: One idea I had was to use splitLayout and somehow insert an image as a function of window width but I am not sure how to acheive this. I understand you can use spli...
KGee
1

votes
1

answer
715

Views

Character vector of length 1 all but the first element will be ignored error when filtering data in Shiny Application

I have the following Shiny Application: library(shiny) library(rhandsontable) library(shinydashboard) library(ggplot2) library(dplyr) setwd('C:/Users/Marc/Dropbox/PROJECTEN/Lopend/shiny_interactive_graph') tweets
Henk Straten
1

votes
2

answer
317

Views

Increase plot size in shiny when using ggplot facets

Is there a way to increase the plot window size in shiny dependent on the number of facets that are used in a ggplot figure - perhaps using a vertical scroll. For example, using the example below, when the input is 'A' there are three facets and the plots look good. When the option 'B' is selected t...
user2957945
1

votes
2

answer
139

Views

R shiny dynamic UI in insertUI

I have a Shiny application where I would like to add a UI element using an action button and then have that inserted ui be dynamic. Here is my current ui file: library(shiny) shinyUI(fluidPage( div(id='placeholder'), actionButton('addLine', 'Add Line') )) and server file: library(shiny) shinyServer...
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

View additional questions