Skip to content

Quarto R ojs_define function and OJS in RStudio #1242

@novotny1akub

Description

@novotny1akub

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?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestojs-engineIssues with the ojs engine

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions