3

Thanks in advance.

Wondering if there is a way to call a ui element via string in the server.r file.

Example: instead of ...

ui.Color <- input$color

do something like ...

ui.Color <- input[,"color"]

...kind of like you could do with a data frame. Issue is class(input) yields reactiveValues so I'm not quite sure how to subset it to get a particular value.

Thanks all!

1 Answer 1

9

Got it!

input[["color"]]

Hope this helps others with the same question!

Sign up to request clarification or add additional context in comments.

1 Comment

Does this still work? I've noticed some odd behavior with recent updates in the shiny package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.