[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: R code blocks in org version 9.5
From: |
Naresh Gurbuxani |
Subject: |
Re: R code blocks in org version 9.5 |
Date: |
Wed, 19 Oct 2022 12:59:17 +0000 |
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