emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R code blocks in org version 9.5


From: Colin Baxter
Subject: Re: R code blocks in org version 9.5
Date: Wed, 19 Oct 2022 14:55:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>>>> Naresh Gurbuxani <naresh_gurbuxani@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_gurbuxani@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

[Prev in Thread] Current Thread [Next in Thread]