shinyjs

Restart shiny app from within app (reloading data)

帅比萌擦擦* 提交于 2021-02-19 01:23:48
问题 I want to restart a shiny app from within the app, so that e.g. code in global.R will be executed again (to reload a csv file with data). Here is a minimal example showing what I want to do: This shiny app loads some coordinates data and plots markers on a map. When a new marker is added to the map, the new coordinates should be appended to the old data and saved as a csv file. Then the app should restart, load data.csv again, so all markers are shown on the map. I tried adapting code from

Restart shiny app from within app (reloading data)

亡梦爱人 提交于 2021-02-19 01:21:52
问题 I want to restart a shiny app from within the app, so that e.g. code in global.R will be executed again (to reload a csv file with data). Here is a minimal example showing what I want to do: This shiny app loads some coordinates data and plots markers on a map. When a new marker is added to the map, the new coordinates should be appended to the old data and saved as a csv file. Then the app should restart, load data.csv again, so all markers are shown on the map. I tried adapting code from

RShiny: How to center sliders

寵の児 提交于 2021-02-08 11:25:27
问题 I am new to RShiny and I am trying to replicate this template: https://shiny.rstudio.com/gallery/retirement-simulation.html I do have the code for this template but this is a learning exercise. Here is what I have so far: ui <- fluidPage( # Title goes here... titlePanel("Retirement: simulating wealth with random returns, inflation and withdrawals"), p("Description here..."), hr(), # Sidebar layout... sidebarLayout( # Sidebar panel... sidebarPanel( # Input: Slider for the number of

How to run user input as R code in a Shiny app?

青春壹個敷衍的年華 提交于 2021-01-27 06:03:00
问题 I want to create a shiny application that has an input for writing some R function or Command, reads it through the ui.R then passes it to the server.R that executes that R command to display the results. I spent hours searching about some example but couldn't find anything, I already know how to create Shiny apps using ui and server and pass the input values to server and work with them, but I have no idea if it's possible to create a shiny app like R where you can write the commands and

How to run user input as R code in a Shiny app?

↘锁芯ラ 提交于 2021-01-27 06:00:49
问题 I want to create a shiny application that has an input for writing some R function or Command, reads it through the ui.R then passes it to the server.R that executes that R command to display the results. I spent hours searching about some example but couldn't find anything, I already know how to create Shiny apps using ui and server and pass the input values to server and work with them, but I have no idea if it's possible to create a shiny app like R where you can write the commands and

Shiny R observeEvent with Multiple Conditions from selectInput

旧街凉风 提交于 2021-01-02 02:06:45
问题 I'm working on a shiny app and I'm running into difficulty with observeEvent() function when creating a complex expression of multiple inputs that all derive from selectInput() . My issue is some of the expressions within the observeEvent() function are triggered at startup, causing the event to prematurely execute (i.e. my actionButton() is disabled at startup, as it should be, but becomes enabled when at least one of the inputs are selected when ideally I would want it to become enabled

Change cell background of rHandsontable with afterChange event on client side

戏子无情 提交于 2020-12-30 01:45:15
问题 I'd like to change the background color of a handsontable cell after it's been edited by the user on the client side. The handsontable is defined through a Shiny application; so this is really a question about how to define event hooks in rHandsontable in the Shiny application. The general use case that I'm trying to accomplish is: users edit cell data; the background color change to indicate that it's been changed and is pending saving to a database; the change is passed back to Shiny's

Change cell background of rHandsontable with afterChange event on client side

让人想犯罪 __ 提交于 2020-12-30 01:38:58
问题 I'd like to change the background color of a handsontable cell after it's been edited by the user on the client side. The handsontable is defined through a Shiny application; so this is really a question about how to define event hooks in rHandsontable in the Shiny application. The general use case that I'm trying to accomplish is: users edit cell data; the background color change to indicate that it's been changed and is pending saving to a database; the change is passed back to Shiny's

Change cell background of rHandsontable with afterChange event on client side

倾然丶 夕夏残阳落幕 提交于 2020-12-30 01:36:49
问题 I'd like to change the background color of a handsontable cell after it's been edited by the user on the client side. The handsontable is defined through a Shiny application; so this is really a question about how to define event hooks in rHandsontable in the Shiny application. The general use case that I'm trying to accomplish is: users edit cell data; the background color change to indicate that it's been changed and is pending saving to a database; the change is passed back to Shiny's

Shinyjs is not working properly due to shiny reactivity

ぃ、小莉子 提交于 2020-12-15 08:34:35
问题 I have the shiny app below in which the user uploads a file (here I just put the dt in a reactive function) and from there he can choose which columns he wants to display as selectInput() via a pickerInput() . Then he should be able to click on Update2 and see the map. The user should also be able to update the depth and stations values by multiplying all of them with the numericInput() value1 and value2 respectively and create a new sliderInput() and therefore update the dataframe that is