Skip to content
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 convert_chunk_header for YAML options #2300

Merged
merged 9 commits into from
Oct 20, 2023
Merged

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Oct 20, 2023

  • Use - and not . for options name
  • Use the new aliases for dev and dpi

This also fix an issue with numeric conversion because yaml::as_yaml to consider a precision that we don't want here I believe.

Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll merge dash_names() with dot_names() later.

@cderv
Copy link
Collaborator Author

cderv commented Oct 20, 2023

Thanks! I'll merge dash_names() with dot_names() later.

I figured you would want to do that 😅

Sorry I got lazy and it was easier to write another function for me 🙄 😄

Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries! Code abstraction takes time. I just did it.

R/parser.R Outdated Show resolved Hide resolved
any::rcmdcheck
XML=?ignore-before-r=4.0.0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why, but this doesn't seem to work: https://github.com/yihui/knitr/actions/runs/6591830453/job/17911237979

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it probably requires to indicate the highest deps that requires it, which in our case is gridSVG. I tried a commit with this

@yihui yihui merged commit b558369 into master Oct 20, 2023
8 of 9 checks passed
@yihui yihui deleted the convert-to-dash-options branch October 20, 2023 20:31
yihui pushed a commit to yihui/knitr-examples that referenced this pull request Oct 20, 2023
@cderv
Copy link
Collaborator Author

cderv commented Oct 22, 2023

Thanks a lot for the fixes !

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants