-
Notifications
You must be signed in to change notification settings - Fork 345
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
Improve validation for layout to help distill conversion ? #2013
Comments
@cderv You'll need to explain this one to me, specifically the interaction with |
Sure. As first step, here is distill doc site : https://rstudio.github.io/distill/ We have a specific I could also create an R function in distill to help convert the chunk option so that we correctly use the new |
I see. This requires a new validation feature ("warning" schemas instead of error schemas), so it'll take a while. We're probably not going to have it in 1.3 |
We should probably track the bug itself (which is the option not being respected) in a different issue. |
I think we could go with an error on this. This is not option not being respected. Let me clarify what i mean
Same option name for different purpose.
But currently no error from YAML side when something like a string is passed to the field
Should be an error right ? For the correct translation from Is that clearer maybe ? |
Yes, it's clearer. Unfortunately, that is hard to do because cell schemas are currently tied to the engine and not the format (it should be possible to do both, but that is hard to fix right now.) |
Not sure to understand correctly what you mean by that but you are the YAML validation expert ! Glad I manage to explain it correctly. I'll try to improve things from distill side too, maybe that will be easier as this will happen mainly for user converting from distill format. |
The execution engine (jupyter vs knitr) controls the schemas that are allowed on an execution cell. For code cells, we have |
Bug description
distill has also a
layout
option, and for now if the option is not correctly converted to Quarto supported one then there is an useful errorknitr::convert_chunk_header()
in both case, we'll have this issue
Not so useful.
And in the second case, YAML validation does not help to detect that. No error detected for the
layout
field in the chunk for me.Can we do better in the error or at least in the validation ?
quarto check
OutputThe text was updated successfully, but these errors were encountered: