How to to get obs variable back into R chunk as a R variable ? #9412
-
DescriptionHow to to get obs variable back into R chunk as a R variable ? I Know ojs_define to transfer an R variable to an ojs variable but how to do the way back ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can't and it's not how it works. |
Beta Was this translation helpful? Give feedback.
-
Thanks ! I thought that with some tricks- maybe shiny context like this exemple https://github.com/quarto-dev/quarto-web/blob/main/docs/interactive/ojs/examples/_shiny/kmeans/kmeans-shiny-ojs.qmd we could use ojs value in R chunck in some ways... my need was to make a maplibre js map (works like a charm in ojs) and bring back the user click information and use the power of R chunk. I'll manage to go on with ojs arquero and js chart librairie. Many tanks, quarto is a great tool ! |
Beta Was this translation helpful? Give feedback.
You can do it if it's a Shiny reactive:
https://quarto.org/docs/interactive/ojs/shiny.html