From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Refresher on including R/ggplot2 output via latex/pdf? Date: Mon, 28 Oct 2019 00:13:25 -0500 Message-ID: References: <87sgndlcbe.fsf@gmail.com> <87imo9lavb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35105) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOxLX-0003jK-KV for emacs-orgmode@gnu.org; Mon, 28 Oct 2019 01:13:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOxLW-0003bw-IW for emacs-orgmode@gnu.org; Mon, 28 Oct 2019 01:13:39 -0400 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:46840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOxLV-0003bW-Vi for emacs-orgmode@gnu.org; Mon, 28 Oct 2019 01:13:38 -0400 Received: by mail-qk1-x72f.google.com with SMTP id e66so7377025qkf.13 for ; Sun, 27 Oct 2019 22:13:37 -0700 (PDT) In-Reply-To: <87imo9lavb.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Jack Kamm Cc: emacs-orgmode On Mon, Oct 28, 2019 at 12:02 AM Jack Kamm wrote: > > John Hendy writes: > > > On Sun, Oct 27, 2019 at 11:31 PM Jack Kamm wrote: > >> > >> Your code block looks fine to me. The typical R code block headers I use is as follows: > > > > Did you try to reproduce my example, by chance? > > I've just now tried executing/exporting your example code blocks, and > they worked fine for me. > > When I execute them I get a link to a result png inserted into the > buffer, and when I export to latex/pdf I get the plot image inserted > correctly into the PDF. > > This is for the example code blocks in both the original and reply > emails, with and without the :session header. Wow, I'm stumped then. I just did a git pull and make clean/make and still get the same results. Org mode version 9.2.6 (release_9.2.6-559-ga01a8f @ /home/jwhendy/.elisp/org/lisp/) This is my full file after C-c C-c on the block: ----- * test #+begin_src R :session :results output graphics :file foo.png :exports results :eval never-export library(ggplot2) df <- data.frame(x=c(1, 2), y=c(2, 4)) p <- ggplot(df, aes(x = x, y = y)) + geom_point() print(p) #+end_src #+RESULTS: ----- This is with emacs -Q and loading the minimal config from the initial email. Any ideas on where I might look next? John