emacs-orgmode
[Top][All Lists]
Advanced

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

R code block produces no output


From: Vikas Rawal
Subject: R code block produces no output
Date: Tue, 17 Dec 2019 16:28:28 +0530

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

reply via email to

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