>>>>> Naresh Gurbuxani <naresh_gurbux...@hotmail.com> writes:

    > It seems that org 9.5 has simplified header arguments for R code
    > blocks that use grid graphics.

    > Org 9.4 requires :results output graphics file

    > Org 9.5 requires :results output file

    > Do other users find the same change?

    > Sent from my iPhone

    >> On Oct 19, 2022, at 8:59 AM, Naresh Gurbuxani
    >> <naresh_gurbux...@hotmail.com> wrote:
    >> 
    >> Thanks to your suggestion, I was able to narrow down the problem.
    >> 
    >> My R code blocks work fine in org 9.5. When I plot graph using
    >> base graphics in session, it works fine.  The problem is with
    >> lattice graphs. With below header variables, code block works
    >> fine.
    >> 
    >> #+begin_src R :session *R* :results graphics file :file test.png
    >> library(lattice) print(histogram(rnorm(10000))) #+end_src
    >> 
    >> But this does not work.  Emacs hangs.
    >> 
    >> #+begin_src R :session *R* :results output graphics file :file
    >> test.png library(lattice) histogram(rnorm(10000)) #+end_src
    >> 
    >> I can simply add print command to my code blocks.  Is there an
    >> easier solution?

I'm afraid both your above examples work for me. I'm on emacs-29.0.50
and org-mode version 9.6-pre (release_9.5.5-995-g4b9aef)

Best wishes

Reply via email to