dt

If statement does not work 2 times in a row in a shiny app

守給你的承諾、 提交于 2020-05-31 22:33:04
问题 I have a shiny app which displays 3 tabs. In the Documents tab there is a table. When the user clicks on the setosa of the 1st row he is moving to the View tab (visible only when click happens) and sees a table. When the user clicks on the setosa of the 2nd row he is moving to the View tab and sees another table. Also those tables must be visible only on View tab. The app seems to work fine but if I click on the 1st row setosa ,move to the View tab, return to the Documents tab again and try

If statement does not work 2 times in a row in a shiny app

故事扮演 提交于 2020-05-31 22:32:10
问题 I have a shiny app which displays 3 tabs. In the Documents tab there is a table. When the user clicks on the setosa of the 1st row he is moving to the View tab (visible only when click happens) and sees a table. When the user clicks on the setosa of the 2nd row he is moving to the View tab and sees another table. Also those tables must be visible only on View tab. The app seems to work fine but if I click on the 1st row setosa ,move to the View tab, return to the Documents tab again and try

Hide a tab in shiny app when the user is not in this tab. Or deactivate it

拟墨画扇 提交于 2020-05-28 07:25:40
问题 I have the shiny dashboard below and I have made the cells of the column Species interactive in a way that if the user clicks on a word of that column ,for example 'setosa', to move to the tab Species .This is the only way someone can move to this tab. The issue is that I do not want the tab Species to be displayed when the user is not in this tab. A secondary solution would be to deactivate Species 'click on' ability. So if the user would accidentaly press it nothing would happen. library

Hide a tab in shiny app when the user is not in this tab. Or deactivate it

删除回忆录丶 提交于 2020-05-28 07:24:28
问题 I have the shiny dashboard below and I have made the cells of the column Species interactive in a way that if the user clicks on a word of that column ,for example 'setosa', to move to the tab Species .This is the only way someone can move to this tab. The issue is that I do not want the tab Species to be displayed when the user is not in this tab. A secondary solution would be to deactivate Species 'click on' ability. So if the user would accidentaly press it nothing would happen. library

Hide a tab in shiny app when the user is not in this tab. Or deactivate it

ぃ、小莉子 提交于 2020-05-28 07:23:20
问题 I have the shiny dashboard below and I have made the cells of the column Species interactive in a way that if the user clicks on a word of that column ,for example 'setosa', to move to the tab Species .This is the only way someone can move to this tab. The issue is that I do not want the tab Species to be displayed when the user is not in this tab. A secondary solution would be to deactivate Species 'click on' ability. So if the user would accidentaly press it nothing would happen. library

render dropdown for single column in DT shiny

做~自己de王妃 提交于 2020-05-27 05:01:09
问题 I'm not proficient in Javascript and would like to replicate a dropdown function as is available in the rhandsontable package but for the DT package. How could this be achieved in the most efficient way? Example library(DT) i <- 1:5 datatable(iris[1:20, ], editable = T, options = list( columnDefs = list( list( targets = 5, render = JS( # can't get my head around what should be in the renderer... ) )) )) The goal is to have the i variable act as validator for the allowed input in the DT object

Shiny widgets in DT Table

我是研究僧i 提交于 2020-05-25 05:43:06
问题 I'm trying to include shiny widgets such as textInput, selectInput (single), sliderInput, and selectInput (multiple) in the rows of a DT table. When the widgets are directly on the page, they display correctly, however, when they are put in the table, some of them do not display correctly. The textInput is fine and the selectInput (single) is mostly fine save for some css differences, but the selectInput (multiple) isn't displaying correctly and the sliderInput definitely isn't displaying

Convert a column of text URLs into active hyperlinks in Shiny

旧城冷巷雨未停 提交于 2020-05-24 08:48:09
问题 I am creating a user interface for a pathway enrichment program. The results are shown in a table as shown below. Below is a snippet showing that I am using DT::renderDataTable and DT::datatable to output the table in a tab. spia_out() is just a reactive function that runs the pathway enrichment and produces a dataframe. spia_out <- reactive({ ...get results in a dataframe... }) output$spiaout <- DT::renderDataTable({ DT::datatable(spia_out(), extensions = ..., options = ...) }) Everything

Convert a column of text URLs into active hyperlinks in Shiny

半世苍凉 提交于 2020-05-24 08:48:04
问题 I am creating a user interface for a pathway enrichment program. The results are shown in a table as shown below. Below is a snippet showing that I am using DT::renderDataTable and DT::datatable to output the table in a tab. spia_out() is just a reactive function that runs the pathway enrichment and produces a dataframe. spia_out <- reactive({ ...get results in a dataframe... }) output$spiaout <- DT::renderDataTable({ DT::datatable(spia_out(), extensions = ..., options = ...) }) Everything

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

核能气质少年 提交于 2020-05-11 12:11:11
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)