-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: new override argument to pass metadata #52
Conversation
Cool! However when you render with fr and es, which is it still "author"/"published" and not their translation? it's not the actual lang option that's changed? |
I am not sure to understand your question.
It really overrides any yaml option set in a document (did not try, but it should also overrides |
I mean that in French it should show "Auteur·rice", not the English version, so that option was not changed? |
Bad order in fact 😅 |
aaah ok, thank you/merci !! |
Great addition. PS would be cool if override would accept a yaml file (directly) instead of a list. |
Override means override default or user defined yaml. Regarding the possibility to pass a file, you can do that from Quarto CLI, but I don't see the rational for this to happen in R through the |
isn't avoiding the cli the main reason to have a quarto package in R ? all use case of using the quarto_render may want to add some options, no way to do that at the moment (for example, any reason you would use (note: I wanted that for using inside a loop going through all files, find a way to achieve it using projects: quarto-dev/quarto-cli#1433) |
I was talking about the yaml file pass through R to Quarto. Being able to add/change yaml options using R syntax in |
Maybe the new param should rather be named |
I am not even sure it's still valid since Quarto CLI had many changes since that time. I think there is a lot to do and that needs to have a global plan to wrap Quarto CLI and ensure smooth update in the future. |
Well, latest stable Quarto CLI still features the same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be better to do using --metadata-file
. We take the list of metadata, write to a temp file and pass it to quarto.
This will also be better considering quarto-dev/quarto-cli#6123
If that is ok, I'll implement it that way.
This PR and other are so old I don't even remember what they are about and the code itself. (Same thing apply to the PR to add the ability to use/install extension which is obsolete as the extension commands changed since last year) |
…uments With a merge mechanism if both are set
This PR add a new argument, namely
override
which takes a named list and pass it toquarto render --metadata key:value
.Fixes #49
Example:
Rendered: