Preview R Notebook with variable in inline R code gives error

When previewing a R Notebook where inline r code refers to a variable defined in a code chunk that is not executed yet, there is an error object not found and no preview is created.
Example, a R Notebook with:

plot(cars)
x <- 1

We would like to see the value of the variable x: r x

It would be nice to create a preview of the document before running all chunks. The output of the variable can than still be empty and a warning shown, but if the preview is shown it would already help. Is there a way to configure this?

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.