dev.args
ignored unless wrapped in a list with device names as element names, even with only one device
#2238
Closed
3 tasks done
Labels
bug
Bugs
When setting a device document-wide, the
dev.args
only has effect if passed in the form ofdev.args = list(device_name = list(option_1 = "x"))
; when set asdev.args = list(option_1 = "x")
, the argument is ignored.This applies also when only one device is set in
dev
.This is surprising given that the documenation states the former usage as necessary only when multiple devices are used (and can be interpreted that when multiple devices are set, the
dev.args
list would apply to both devices unless set as list(dev_1 = list(...), dev_2 = list(...))).The reprex below explores the resulting files when
dev.args
is set without the list structure (dev.args
is ignored)dev.args
is a list with one element, named after the single device (this works)Reprex
Session info
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: