Skip to content
Discussion options

You must be logged in to vote

This is a feature request for the knitr 📦 I believe. knitr option does not use - because it would need to be quoted when using in chunk header

```{r, fig-cap="image"}
plot(cars)
```

would throw an error but

```{r, 'fig-cap'="image"}
plot(cars)
```

would not.

I agree there is indeed something to think about though here, because we only convert known options.

Regarding engine.opts, it is used extensively to pass options to some engine, often using CLI tool. It is a way to get option namespaced and avoid conflict too.

Happy to discuss this in an issue in knitr repo to see how we can improve for new engine author.

Thanks for opening the discussion

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@eitsupi
Comment options

@cderv
Comment options

cderv Feb 3, 2023
Maintainer

Answer selected by eitsupi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants