I tried to use Quarto to do data preprocessing in R and then make the created data available in OJS using RStudio, but it seems to me that the ojs_define function is not available. This [article ](https://quarto.org/docs/interactive/ojs/data-sources.html#python-and-r) suggests that it might be possible, but it does not seem to be working for me.

```
{r}
#| output: false
ojs_define(mtcars = mtcars)
```

In addition, it seems that using ojs from RStudio does not seem to be possible either. For example, following results in an error:
```
{ojs}
viewof bill_length_min = Inputs.range(
  [32, 50], 
  {value: 35, step: 1, label: "Bill length (min):"}
)
```

Is there a way to do what I tried above or will it be possible eventually?
cscheid
2022-06-29T10:30:20Z
novotny1akub
enhancement ojs-engine
Future
open
Quarto R ojs_define function and OJS in RStudio
https://github.com/quarto-dev/quarto-cli/issues/1242