Shiny

search bar module in R shiny how to return results

自作多情 提交于 2020-12-15 07:54:05
问题 I'm trying to make a shiny module that will alter a datatable based on a custom searchbar. I managed to make an app that will print the results of a searchbar search into R-Studio console, but, how do I return the results from the module and update the reactive data storage? Here is an example app, I want to return what is printed to update the reactive: myModuleUI <- function(id) { ns <- NS(id) tagList( fluidRow( column(width=2, textInput(ns("searchField"), "Search"), dataTableOutput("table"

R Shiny - What is the problem with my observe function ({UpdateSelectInput})?

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-15 07:16:32
问题 I've looked on similar posts for my problem, but nothing is helping and I'm running out of patience. I have a very simple app, where I'm trying to find all counties within a selected US state. I'm using SelectInput in the UI for users to select what state they want, and an UpdateSelectInput in the server so users can select what county they want from their state selection. This is what my simplified data looks like: **STATE_NAME NAMELSAD** Alabama Clay County Alabama Marengo County Arkansas

How to get the current URL for Shiny App?

别来无恙 提交于 2020-12-15 04:33:00
问题 When I run a shiny application on RStudio, my app runs and the URL looks like this: Listening on http://127.0.0.1:4991 But each time I run again the app, the port changes, I wonder if there is a way to obtain the url as a variable or something like that. I mean, each time that I run the app, I want to obtain the URL and save it in a variable. Thank you 回答1: You can specify the port using options: #example: https://shiny.rstudio.com/articles/basics.html options(shiny.host = '0.0.0.0') options

How to get the current URL for Shiny App?

感情迁移 提交于 2020-12-15 04:32:19
问题 When I run a shiny application on RStudio, my app runs and the URL looks like this: Listening on http://127.0.0.1:4991 But each time I run again the app, the port changes, I wonder if there is a way to obtain the url as a variable or something like that. I mean, each time that I run the app, I want to obtain the URL and save it in a variable. Thank you 回答1: You can specify the port using options: #example: https://shiny.rstudio.com/articles/basics.html options(shiny.host = '0.0.0.0') options

Display download button in a tab based on actions in other tabs of a shiny dashboard

狂风中的少年 提交于 2020-12-14 23:58:00
问题 I have the shiny dashboard below in which if I give a name except of the default consent.name , then press Continue and will be moved in the tabItem Password in which I give the password makis and press the Get started actionbutton in either Welcome or Run Project tab an rmd output is generated. Then the user can press 'Generate report' in order to download this as pdf. Basically what I want to do is to display the 'Generate report' downloadButton() only when the report is created and

Is there a way to auto-authenticate access to GoogleSheets upon R Shiny App load? Googlesheets4 authentication trouble

只愿长相守 提交于 2020-12-13 19:08:43
问题 I'm currently working with an R Shiny App that utilizes googlesheets4 to read data in from a GoogleSheet. I recognize that authentication is important for accessing GoogleSheets, so I've tried authenticating the app using the code below in my app.R file (email and api key removed for privacy): ### AUTHENTICATE FOR GOOGLE SHEETS ACCESS ### sheets_auth( email = "MY EMAIL", path = NULL, scopes = "https://www.googleapis.com/auth/spreadsheets", cache = gargle::gargle_oauth_cache(), use_oob =

Is there a way to auto-authenticate access to GoogleSheets upon R Shiny App load? Googlesheets4 authentication trouble

瘦欲@ 提交于 2020-12-13 19:05:44
问题 I'm currently working with an R Shiny App that utilizes googlesheets4 to read data in from a GoogleSheet. I recognize that authentication is important for accessing GoogleSheets, so I've tried authenticating the app using the code below in my app.R file (email and api key removed for privacy): ### AUTHENTICATE FOR GOOGLE SHEETS ACCESS ### sheets_auth( email = "MY EMAIL", path = NULL, scopes = "https://www.googleapis.com/auth/spreadsheets", cache = gargle::gargle_oauth_cache(), use_oob =

Do not remove spaces in kable function - with example

扶醉桌前 提交于 2020-12-13 17:52:29
问题 I'm summarizing data and creating a table within a Shiny application. My basic problem is that I would like to add some additional spaces in between elements in a concatenated string so that it is more readable, but the spaces added seem to disappear. I think that the paste() function is appropriately adding the extra space around the "+/-" symbol, but that using either kable or kableExtra to create a table deletes the spaces. I think I'm asking the same question as this person did, but that

Do not remove spaces in kable function - with example

ぃ、小莉子 提交于 2020-12-13 17:47:34
问题 I'm summarizing data and creating a table within a Shiny application. My basic problem is that I would like to add some additional spaces in between elements in a concatenated string so that it is more readable, but the spaces added seem to disappear. I think that the paste() function is appropriately adding the extra space around the "+/-" symbol, but that using either kable or kableExtra to create a table deletes the spaces. I think I'm asking the same question as this person did, but that

Download Pdf report in Shiny

心已入冬 提交于 2020-12-13 03:42:27
问题 Im making a shiny app, that will create 2 plots and one table. There are a lot of options in the select input part. Once selected it will subset the data.frame and return with another data.frame to be analised. It will plot accordingly and I want it to generate a report in pdf (or html) with the details of the input. Like "Generate Report" button and give me the plot for that specific input and with the input$company.pdf (or html) name. I have searched everywhere and I cant find out how to do