-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Why is KNITR_WIDTH a global option and not a package option? #597
Comments
Because
I have not documented it because I have not made the decision yet. |
A transition to global options instead of I haven't found a corresponding issue in the issue tracker. Also, we should not forget documenting |
I do not plan to do that to |
On second thought, I think it makes sense to be able to set chunk options via something like |
The breaking change shouldn't be necessary unless you have a package option that starts with |
That is right, and I do not have a package option starting with |
I think |
The main purpose of this is to allow users to change the default package options and chunk options in |
I'll keep backward compatibility for a while so users can move from |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I have found
KNITR_WIDTH
through code inspection, after I have noticed thatknitr
resetsoption(width=75)
. Very useful indeed.I am willing to contribute documentation, but then I'm unsure where to put it. Perhaps in options.md? But then a new section, "Global options" would have to be introduced.
This leads to the question: Why is
KNITR_WIDTH
a global option in the first place? Wouldn't it be more consistent to use a package option here? BesidesKNITR_WIDTH
, onlyconfig.pandoc
seems to be queried using thegetOption
call.The text was updated successfully, but these errors were encountered: