I've tried to look into some examples but I still haven't quite grokked this, or know if it's possible to do.
I'm running shiny in an Rmd flexdashboard file.
What I'd like to be able to do is take the text box input and feed it into a successive python chunk.
My problem is that I don't know how to just capture the value of the text input and use it outside of the reactive environment, if that makes sense.
# input object = text area box
textAreaInput("text", label = h3("Paste Abstract Here"), width = '600px', height = '300px')
# and the submit button
actionButton("submit", "Submit")
# this is the variable I create so that I can renderText, use it with an action button, etc.
v <- reactiveValues()
# which populates if the submit button is clicked
observeEvent(
input$submit,
v$data <- input$text
)
# and I'd like to be able to do something like this:
var <- value of v$data/input$text
# successive python chunk
test = str(var)