ojs inputs to R
#612
-
I want to pass data collected by ojs (dataojs), like [ viewof dataojs = Inputs.range(..) ] to R like define_ojs does from R to ojs. This is crucial: but I didn't find a single mention or something. |
Beta Was this translation helpful? Give feedback.
Answered by
cscheid
Apr 13, 2022
Replies: 1 comment 2 replies
-
Sorry that the information is somewhat hard to find! The explanation is here: https://quarto.org/docs/interactive/ojs/shiny.html By default, Edit: here's a minimal example on shinyapps: https://jjallaire.shinyapps.io/kmeans-shiny-ojs/ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately, I think that is not possible with the current version of R + ojs. If you have an R function whose values depend on an OJS interactive input, then you will need that R function to execute every time the interactive input changes. As a result, you need shiny to host the execution of that R function.