Question Details

No question body available.

Tags

javascript r shiny conductor

Answers (1)

April 19, 2026 Score: 0 Rep: 818 Quality: Low Completeness: 60%

The onShow, onHide, onStart, etc. arguments in {conductor} expect a string of JavaScript code. A practical way to use this in Shiny is to call Shiny.setInputValue() from JavaScript to update a reactive input, which you can then observe on the R side.

For example, you can use this to track the state of a tour step:

onShow = "Shiny.setInputValue('mytourstate', true, {priority: 'event'})"

This sends a value to input$mytourstate in your Shiny server. The {priority: 'event'} ensures the value is always sent, even if it hasn’t changed.

Minimal working example

library(shiny)
library(conductor)

ui