Questions tagged [shinyjs]

shinyjs is an R package that lets you perform common useful JavaScript operations in Shiny applications without having to know any JavaScript. This is turn allows you to easily improve the user interaction and user experience in your Shiny apps. It can also be used to easily run your own custom JavaScript functions from R.

shinyjs lets you perform common useful JavaScript operations in Shiny apps that will greatly improve your apps without having to know any JavaScript.

Examples include: hiding an element, disabling an input, resetting an input back to its original value, delaying code execution by a few seconds, and many more useful functions for both the end user and the developer. shinyjs can also be used to easily call your own custom JavaScript functions from R.

Useful resources:

637 questions
0
votes
1 answer

Disasble shiny sliderInput using shinyjs

I am building multiple lm() models using dplyr. I want to allow a user to change the independent variable value in a Shiny app - via shiny::sliderInput(). But only do so where "goodness of fit" say R^2 is greater than a threshold - otherwise disable…
iboboboru
  • 1,112
  • 2
  • 10
  • 21
0
votes
1 answer

Loading Screen on a Shiny gadget with miniUI

I'm building a Shiny gadget using miniUI. I would like to display a loading screen while the gadget does some prep work and have tried implementing this simple and convenient solution:…
msenn
  • 3
  • 3
0
votes
1 answer

Q: How to make shiny app output result in a new page?

I am trying to make an app that allow user to input data and then let shiny server to calculate some results, for example, I could make shiny generate a plot or a data table. However, due to the space of the UI, I kind of "run out of" space. The…
Bill Chen
  • 1,699
  • 14
  • 24
0
votes
1 answer

receiving [object Object] when appending html from r server

I an trying to simply append a div from the server file using the below code HTML("content-id",div("title", "Hello"), add = TRUE) but it keeps returning [object Object] Is there anything i can do to fix this? I've tried using …
joe-gz
  • 165
  • 1
  • 3
  • 12
0
votes
1 answer

subsetting using selectizeInput - shiny R

I have a drop down menu which is a selectizeInput - using which I need to subset my dataframe for analysis further. Consider the following, d - dataframe (has a column named 'test') menu - the selectizeInput drop down d[d$test %in% input$menu,…
Harriss
  • 13
  • 1
  • 8
0
votes
1 answer

Using shiny updateRadioButtons with shinyjs disable/enable

I need to restrict the user's ability to select radio buttons, yet show them at all times. I use shinyjs::disable to disable the button and updateRadioButtons to update the selection , but it doesn't seem to work correctly. Only the update seems to…
Xlrv
  • 469
  • 1
  • 6
  • 16
0
votes
1 answer

Linking sidebarPanels in shiny for SelectizeInput function

Assume I have a drop down in sidebarPanel - location from which I can select a maximum of 2 options. I want to create an if loop where in - chosing 'Saddle Joint' and 'Gliding Joint' from the drop down leads to selection of objects 'x' and 'y' in…
Harriss
  • 13
  • 1
  • 8
0
votes
0 answers

conditionalPanel to link sidebars and make appropriate selections - Shiny R

I have an UI designed as shown in the picture below, and I want to actually set a condition here such that: UI.R On selecting/checking the box "Saddle Joint" from the sidebar location, I want the options "GEO_10500", "GEO_77298" to be chosen from…
Harriss
  • 13
  • 1
  • 8
0
votes
0 answers

Make panels invisible based on an input from another panel - Shiny R

Assume I have three sidebarPanels, 'cond. 1', 'cond. 2' and 'treatment'. I need to make the sidebarPanels (cond. 1 and cond. 2) disappear on choosing a value from the 'treatment' drop down menu. If no value is chosen from treatment, I need to keep…
Harriss
  • 13
  • 1
  • 8
0
votes
0 answers

Issue: Creating a drop down menu in Shiny R - not all objects are displayed

I have about 8000ish elements under 'gene_count', but only a few gets displayed when I create a dropdown menu using the command, fluidRow( column(12, br(), selectInput("gene_search", label =…
Harriss
  • 13
  • 1
  • 8
0
votes
0 answers

R shiny ui object order of display

I'm building a simple shiny app which will take inputs from the user and fetch data from a table in the DB and take the number of records to be downloaded as an input and provide a download file option. Everything below works just fine. My only…
user1946217
  • 1,733
  • 6
  • 31
  • 40
0
votes
1 answer

Plot based on dependent selection

I have a data frame book3. It has three column Region, Country and Rating. Region<- c("Americas", "Asia Pacific","Asia Pacific", "EMEA", "EMEA") Country<- c("Mexico", "China","India", "Germany", "Spain" ) Rating<- c(5,3,3,2,4) book3<-…
0
votes
1 answer

Error in data.frame: (list) object cannot be coerced to type 'logical'

I am trying to delete a row selected by the user on a d3table using shinyjs functions. The code for what I have so far is as below: library(shiny) library(htmlwidgets) library(D3TableFilter) data(mtcars) mtcars2 <- mtcars[,1:2] GetTableMetadata <-…
Jill Sellum
  • 319
  • 2
  • 4
  • 14
0
votes
1 answer

Error in Shiny in R when setting a ReferenceClass from a package loaded with devtools

This is a very specific question. I have a simple Shiny app, using the latest version of R (3.2.2), RStudio (0.99.473), all packages up-to-date, tested in both Windows 7 and Ubuntu 14.04. The same thing happens in both SOs. I have a library of…
Chicoscience
  • 975
  • 1
  • 8
  • 18
-1
votes
2 answers

Why am I unable to plot the graph on RShiny?

I want to create a RShiny plot. When I launch the app, the sidebar is visible but there is no plot. What's causing the error? Here's my code: library(shiny) ui <- fluidPage( sidebarLayout( sidebarPanel( selectInput('xcol', 'X Variable',…
meloi
  • 1
  • 2
1 2 3
42
43