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

Fix #1100: respect knitr's chunk option 'dev' if it has been set #1140

Merged
merged 1 commit into from
Sep 9, 2017
Merged

Fix #1100: respect knitr's chunk option 'dev' if it has been set #1140

merged 1 commit into from
Sep 9, 2017

Conversation

yihui
Copy link
Member

@yihui yihui commented Sep 8, 2017

By default, dev = NULL in knitr's opts_chunk; for markdown output, knitr will check if the png device is usable in knitr:::set_html_dev and set dev = 'png' if it is, otherwise knitr uses 'svg' as the default device, which does not depend on X11.

This should be a low-risk change since it should be rare that png is not usable.

Probably not worth a NEWS entry.

by default, dev = NULL in knitr's opts_chunk; for markdown output, knitr will check if the png device is usable in knitr:::set_html_dev and set dev = 'png' if it is, otherwise knitr uses 'svg' as the default device, which does not depend on X11
@yihui yihui added this to the v1.7 milestone Sep 8, 2017
@yihui yihui requested a review from jjallaire September 8, 2017 14:58
@jjallaire jjallaire merged commit d31ec87 into rstudio:master Sep 9, 2017
@yihui yihui deleted the bugfix/1100 branch September 9, 2017 00:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
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