-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eval
is about expressions, not lines
#12164
Comments
There's something weird happening here: |
@cscheid but that's a valid Knitr allows:
Note that to be multiple options using the R multi-line syntax you need a trailing comma.
Luckily, you cannot mix R and YAML multi-line syntaxes. |
I did not use
|
We should either fix the documentation string to be explicit that Quarto doesn't allow numbers in Unfortunately, and to add to the complication, we have a limitation where options cannot have different schemas in different engines. |
@fkohrt yes this is indeed the problem. This was a bad copy past and documented it wrong in the doc.
@cscheid I think we are hitting this case again. We currently documented the knitr specific option support quarto-cli/src/resources/schema/cell-codeoutput.yml Lines 14 to 15 in e8eefd9
IMO, this should be allowed for backward compatibility with knitr. As long as we support And even with not considering Rmd doc support, this is a feature of the knitr engine that should be available to users. This is same problem in a way than as Anyhow, first step is to fix the doc even in the current situation. |
What would you like to do?
Report an issue on quarto.org
Description
The documentation on the
eval
option currently says the following:However, this is not correct. Take the following document:
If the number provided to
eval
were about lines, then1
should not get printed. However, it is3
which does not get printed, because the number provided toeval
is about expressions. This is also evident from the corresponding documentation forknitr
:The text was updated successfully, but these errors were encountered: