emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: Naresh Gurbuxani <naresh_gurbuxani@hotmail.com>
Cc: William Denton <wtd@pobox.com>,
	 "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: R code blocks in org version 9.5
Date: Wed, 19 Oct 2022 14:55:41 +0100	[thread overview]
Message-ID: <874jvz2a02.fsf@yandex.com> (raw)
In-Reply-To: <IA1P223MB0499490E5DF5366DEFA60D9BFA2B9@IA1P223MB0499.NAMP223.PROD.OUTLOOK.COM> (Naresh Gurbuxani's message of "Wed, 19 Oct 2022 13:27:51 +0000")

>>>>> 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	other threads:[~2022-10-19 13:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 23:48 R code blocks in org version 9.5 Naresh Gurbuxani
2022-10-19  3:14 ` William Denton
2022-10-19 12:59   ` Naresh Gurbuxani
2022-10-19 13:27     ` Naresh Gurbuxani
2022-10-19 13:55       ` Colin Baxter [this message]
2022-10-19 14:23       ` William Denton
2022-10-19 16:52     ` Cook, Malcolm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jvz2a02.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=naresh_gurbuxani@hotmail.com \
    --cc=wtd@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).