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 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?
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 suggests that it might be possible, but it does not seem to be working for me.
In addition, it seems that using ojs from RStudio does not seem to be possible either. For example, following results in an error:
Is there a way to do what I tried above or will it be possible eventually?