Carmellose
Carmellose

Reputation: 5088

shiny: get the underlying reactive value on the server side

I would like to get the value of a reactive input on the server side. How can I do this?

I tried the following:

# shinyServer code
rv <- reactive( as.integer( input$value ) ) # integer input value
print(rv)

However, this does not print the underlying value of the reactive.

What am I doing wrong?

Thanks

Upvotes: 1

Views: 590

Answers (1)

Tonio Liebrand
Tonio Liebrand

Reputation: 17689

reactives you can access like this:

observe({
    print(rv())
})

Upvotes: 1

Related Questions