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

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?
> 
> Naresh
> 
> Sent from my iPhone
> 
>>> On Oct 18, 2022, at 11:14 PM, William Denton <wtd@pobox.com> wrote:
>>> 
>>> On 18 October 2022, Naresh Gurbuxani wrote:
>>> 
>>> Recently I started using org version 9.5 with my init.el that worked well for org 9.4
>>> 
>>> In org 9.5, I can run stand-alone R code blocks.  But when I try to run them in a session, emacs hangs.
>> 
>> I haven't had any problems like that, and I use R session code blocks pretty much every day.  Can you narrow it down any?  Does even the most basic block, just adding 1 + 1, not work?  What about with emacs -Q?
>> 
>> 
>> Bill
>> 
>> --
>> William Denton
>> https://www.miskatonic.org/
>> Librarian, artist and licensed private investigator.
>> Toronto, Canada

  reply	other threads:[~2022-10-19 13:35 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 [this message]
2022-10-19 13:55       ` Colin Baxter
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=IA1P223MB0499490E5DF5366DEFA60D9BFA2B9@IA1P223MB0499.NAMP223.PROD.OUTLOOK.COM \
    --to=naresh_gurbuxani@hotmail.com \
    --cc=emacs-orgmode@gnu.org \
    --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).