[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Incorrect background color [9.5.4 (release_9.5.4-3-g6dc785 @ /
From: |
Ihor Radchenko |
Subject: |
Re: [BUG] Incorrect background color [9.5.4 (release_9.5.4-3-g6dc785 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] |
Date: |
Sun, 13 Nov 2022 04:37:54 +0000 |
Jeremie Juste <jeremiejuste@gmail.com> writes:
> >> WORG page is not accurate here. The truth is that ob-R.el does not provide
> >> any defaults for header args. Instead, R defaults are used. I suspect
> >> that defaults for background color changed in R since the WORG page has
> >> been written.
> >
> > Jeremie, could you please take a look?
>
> Yes. Thanks for confirming the issue. I confirm that the white backgroud is
> the default and is R default.
> I could not trace back any recent change in R. So I suspect white was always
> the default.
> But I could well be wrong here.
> ...
> Thanks also for updating the WORG page.
Thanks for the confirmation!
Also, it was Bastien who updated the page.
Fixed.
https://git.sr.ht/~bzg/worg/commit/5c24f6e33f20505ee161cd2c5fc93e39891d08ad
> Note also that R parameters always takes precedence on the org-mode ones. As
> in the example below.
>
> #+BEGIN_SRC R :results graphics file :file test.svg :outputs both bg red
> par(bg="blue")
> plot(1:10, type = "n")
> #+end_src
>
> In opinion the actual org parameters are the right ones. But I'm open to
> suggestions.
I do not think that we can do anything about it and I do not think that
we do anything wrong.
Org can set options provided in header args as defaults, but the actual
code can do anything, including changing those defaults.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>