shinybs

add popovers to shiny app?

て烟熏妆下的殇ゞ 提交于 2019-12-03 07:37:58
I would like to add a (?) next to the title of a widget so that the user can hover or click it and get extra information and a link they can click. This is what I have right now: ## app.R ## library(shiny) library(shinydashboard) library(shinyBS) # Header header <- dashboardHeader() # Sidebar sidebar <- dashboardSidebar(fileInput("chosenfile", label = h4("File input"), accept = ".csv"), bsButton("q1", label = "", icon = icon("question"), style = "info", size = "extra-small"), bsPopover(id = "q1", title = "Tidy data", content = paste0("You should read the ", a("tidy data paper", href = "http:/

R Shiny observeEvent issues

拈花ヽ惹草 提交于 2019-12-02 08:09:09
问题 I am trying to delete the rows from a dataframe when they have been selected in the datatable and someone presses the "Delete Rows" switch. input$click_rows_selected gives the id's of the selected rows. There seems to be something wrong with my use of observeEvent and observe, because the code deletes the selected rows the first time I flick the switch. Afterwards however, every time I select a row it also deletes that row. How do I get to stop deleting the row once the switch has been turned

reactive tooltipBS in shiny using ShinyBS

会有一股神秘感。 提交于 2019-12-01 10:42:49
问题 I try to use shinyBS package into my simple app. What I want to do is to create reactive tooltip text depends on each radioButton. In order to clarify my problem I wrote a simple code in HTML & JS. I also found one solution which seemed to solve my issue, but actually I do not think it works properly. Is it possible to do it using shinyBS package? I also want to implement my HTML & JS code into Shiny but still it does not work. library(shiny) yourStr <- "$(document).ready(function(){ $('[id=

Shiny modules namespace outside of UI for javascript links

房东的猫 提交于 2019-12-01 01:03:01
I am trying to use shiny modules to re-use the UI and server code to present off of three different data sets that share the same presentation. Running into a bit of a challenge dealing with namespace when using javascript based modal popup link creation outside of the UI / server code. Here is my non-working app code: library(shiny) library(shinyBS) library(DT) df <- data.frame(id = c('a', 'b', 'c'), value = c(1, 2, 3)) on_click_js = " Shiny.onInputChange('myLinkName', '%s'); $('#myModal').modal('show') " convert_to_link = function(x) { as.character(tags$a(href = "#", onclick = sprintf(on

Shiny modules namespace outside of UI for javascript links

假如想象 提交于 2019-11-30 19:58:35
问题 I am trying to use shiny modules to re-use the UI and server code to present off of three different data sets that share the same presentation. Running into a bit of a challenge dealing with namespace when using javascript based modal popup link creation outside of the UI / server code. Here is my non-working app code: library(shiny) library(shinyBS) library(DT) df <- data.frame(id = c('a', 'b', 'c'), value = c(1, 2, 3)) on_click_js = " Shiny.onInputChange('myLinkName', '%s'); $('#myModal')

Use bsModal in the shinyBS package with plotly R plotly_click to generate new plot in pop up

徘徊边缘 提交于 2019-11-30 16:28:11
Here is my code for a basic shiny app using plotly_click event to optionally show another plot. I would like that side box plot to render in a modal pop up instead of on the side within the page. library(shiny) library(plotly) df1 <- data.frame(x = 1:10, y = 1:10) df2 <- data.frame(x = c(rep('a', 10), rep('b', 10)), y = c(rnorm(10), rnorm(10, 3, 1))) ui <- fluidPage( column(6, plotlyOutput('scatter')), column(6, plotlyOutput('box')) ) server <- function(input, output) { output$scatter <- renderPlotly({ plot_ly(df1, x = x, y = y, mode = 'markers', source = 'scatter') }) output$box <-

Create a popup dialog box interactive

房东的猫 提交于 2019-11-30 02:30:28
I was wondering if it is possible to create a popup dialog box interactive by using shiny (and shinyBS). For example, I have a string and I want to change it and before doing a dialog box shows up asking if I really want to change it. In case I say "yes", it does it otherwise it discards the change. Here's my try but I found two issues: 1. if you click "yes" or "no", nothing changes 2. you always need to close the box by the bottom "close". rm(list = ls()) library(shiny) library(shinyBS) name <- "myname" ui =fluidPage( textOutput("curName"), br(), textInput("newName", "Name of variable:", name

Use bsModal in the shinyBS package with plotly R plotly_click to generate new plot in pop up

淺唱寂寞╮ 提交于 2019-11-29 23:31:46
问题 Here is my code for a basic shiny app using plotly_click event to optionally show another plot. I would like that side box plot to render in a modal pop up instead of on the side within the page. library(shiny) library(plotly) df1 <- data.frame(x = 1:10, y = 1:10) df2 <- data.frame(x = c(rep('a', 10), rep('b', 10)), y = c(rnorm(10), rnorm(10, 3, 1))) ui <- fluidPage( column(6, plotlyOutput('scatter')), column(6, plotlyOutput('box')) ) server <- function(input, output) { output$scatter <-

R shinyBS popup window

∥☆過路亽.° 提交于 2019-11-29 05:23:09
I working on a project where I have to create a form in shiny. I currently have a datatable in the UI which has email in the form of hyperlink. Once the hyperlink is clicked the modal window opens where I have another UI which shows the various fields to be filled. I have a save button here that should update my DB in the backend once the button is clicked. The problem I am facing is that I am unable to reference each email to that particular modal window and my update query updates all the records in the DB. Is there a way to pass all the record details that has been clicked into the modal

Create a popup dialog box interactive

风格不统一 提交于 2019-11-28 23:29:16
问题 I was wondering if it is possible to create a popup dialog box interactive by using shiny (and shinyBS). For example, I have a string and I want to change it and before doing a dialog box shows up asking if I really want to change it. In case I say "yes", it does it otherwise it discards the change. Here's my try but I found two issues: 1. if you click "yes" or "no", nothing changes 2. you always need to close the box by the bottom "close". rm(list = ls()) library(shiny) library(shinyBS) name