Ask Your Question
0

How can a shinyglide screen be produced, using a numericInput as the basis?

asked 2023-05-29 19:48:11 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-29 19:55:02 +0000

qstack gravatar image

To produce a shinyglide screen using a numericInput, you can follow these steps:

  1. Install and load the shinyglide package in your R environment:
install.packages("shinyglide")
library(shinyglide)
  1. Create a Shiny app and define a numericInput as the input element:
ui <- fluidPage(
  numericInput("number", "Enter a number:", value = 1)
)
  1. Add a shinyglide layout to the app using the glideLayout function, and include the numericInput inside a slide:
ui <- fluidPage(
  glideLayout(
    slide("Slide 1",
          numericInput("number", "Enter a number:", value = 1)
    )
  )
)
  1. Run the Shiny app using the shinyApp function:
server <- function(input, output) {}

shinyApp(ui, server)

Now you should see a shinyglide screen with a numericInput as the input element. You can add more slides to the glide layout using the slide function, and include more input/output elements or any other Shiny UI components in each slide.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-29 19:48:11 +0000

Seen: 17 times

Last updated: May 29 '23