* R code block produces no output @ 2019-12-17 10:58 Vikas Rawal 2019-12-17 12:43 ` William Denton 0 siblings, 1 reply; 4+ messages in thread From: Vikas Rawal @ 2019-12-17 10:58 UTC (permalink / raw) To: org-mode mailing list [-- Attachment #1: Type: text/plain, Size: 959 bytes --] I have a strange problem and I wonder if there is a new bug. Would appreciate for any help in identifying the problem. A simple code block like the following does not create the graph. #+NAME: test #+BEGIN_SRC R :results output graphics :exports results :file temp.jpg :width 2400 :height 1200 :res 300 :session temp library(ggplot2) data.frame(date=c(1:10),ifpa=c(11:20))->t ggplot(t,aes(x=date,y=ifpa))->p p+geom_point() #+end_src When I compile this using C-c C-c, I get the following message: executing R code block (test)... Code block produced no output. The code produces the right graph when I do C-c ' to go into an ESS buffer and execute these commands. I am on following versions of Org and Emacs: Org mode version 9.3 (9.3-8-geab7c4-elpaplus @ /home/vikas/.emacs.d/elpa/org-plus-contrib-20191209/) GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of 2019-08-30 Thanking you and with best wishes, Vikas [-- Attachment #2: Type: text/html, Size: 1296 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: R code block produces no output 2019-12-17 10:58 R code block produces no output Vikas Rawal @ 2019-12-17 12:43 ` William Denton 2019-12-17 14:11 ` Vikas Rawal 0 siblings, 1 reply; 4+ messages in thread From: William Denton @ 2019-12-17 12:43 UTC (permalink / raw) To: Vikas Rawal; +Cc: org-mode mailing list On 17 December 2019, Vikas Rawal wrote: > A simple code block like the following does not create the graph. > > #+NAME: test > #+BEGIN_SRC R :results output graphics :exports results :file temp.jpg :width 2400 :height 1200 :res 300 :session temp That should be ":results file graphics". Bill -- William Denton :: Toronto, Canada --- Listening to Art: https://listeningtoart.org/ https://www.miskatonic.org/ --- GHG.EARTH: https://ghg.earth/ Caveat lector. --- STAPLR: https://staplr.org/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: R code block produces no output 2019-12-17 12:43 ` William Denton @ 2019-12-17 14:11 ` Vikas Rawal 2019-12-18 1:08 ` Vikas Rawal 0 siblings, 1 reply; 4+ messages in thread From: Vikas Rawal @ 2019-12-17 14:11 UTC (permalink / raw) To: William Denton; +Cc: org-mode mailing list [-- Attachment #1: Type: text/plain, Size: 497 bytes --] On Tue, 17 Dec 2019 at 18:13, William Denton <wtd@pobox.com> wrote: > On 17 December 2019, Vikas Rawal wrote: > > > A simple code block like the following does not create the graph. > > > > #+NAME: test > > #+BEGIN_SRC R :results output graphics :exports results :file temp.jpg > :width 2400 :height 1200 :res 300 :session temp > > That should be ":results file graphics". > > Thanks very much. This works. I guess this has recently changed. I have always used ":results output graphics" Vikas [-- Attachment #2: Type: text/html, Size: 900 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: R code block produces no output 2019-12-17 14:11 ` Vikas Rawal @ 2019-12-18 1:08 ` Vikas Rawal 0 siblings, 0 replies; 4+ messages in thread From: Vikas Rawal @ 2019-12-18 1:08 UTC (permalink / raw) To: William Denton; +Cc: org-mode mailing list [-- Attachment #1: Type: text/plain, Size: 548 bytes --] >> That should be ":results file graphics". >> >> > Thanks very much. This works. I guess this has recently changed. I have > always used ":results output graphics" > > > I see that the behaviour changed with 9.3. Release notes ( https://www.orgmode.org/Changes.html) have this: :file header argument no longer assume "file" :results The "file" :results value is now mandatory for a code block returning a link to a file. The :file or :file-ext header arguments no longer imply a "file" result is expected. -- Thanks a lot for your help. Vikas [-- Attachment #2: Type: text/html, Size: 1426 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-12-18 1:08 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-12-17 10:58 R code block produces no output Vikas Rawal 2019-12-17 12:43 ` William Denton 2019-12-17 14:11 ` Vikas Rawal 2019-12-18 1:08 ` Vikas Rawal
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).