From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] [bug] bug in R-specific header argument for graphics driver Date: Mon, 19 Mar 2012 10:17:11 -0400 Message-ID: <87ty1kad5k.fsf@gmx.com> References: <4F66F488.7030403@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9dOz-0000NU-7X for emacs-orgmode@gnu.org; Mon, 19 Mar 2012 10:17:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9dOw-0006dv-Pp for emacs-orgmode@gnu.org; Mon, 19 Mar 2012 10:17:36 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:58651 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S9dOw-0006dG-Jd for emacs-orgmode@gnu.org; Mon, 19 Mar 2012 10:17:34 -0400 In-Reply-To: <4F66F488.7030403@gmail.com> (Rainer M. Krug's message of "Mon, 19 Mar 2012 09:55:36 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: R.M.Krug@gmail.com Cc: emacs-orgmode Hi Rainer, I see you CC'd me on this email. I personally do not know anything about how the graphics header argument to R code blocks works. I would recommend looking deeper into the behavior using the following tools - Look at the expanded code block body using org-babel-expand-src-block - Run the code block in a session, and then look into the session buffer to see what R code is being generated by Babel, then try to debug the R as you would normally - look into the temporary R scripts generated during execution, which will live in a directory with a name like /tmp/babel-XXXXXX If you are able to isolate a bug in Babel then I can help fix that bug in the elisp code. Thanks and sorry I can't be of more immediate, Rainer M Krug writes: > I did not get any response so far, so I hope that the email did not went out... > > Rainer > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > When giving the header argument :title: the graph is not produced in a file: > > * This works > Display boxplot of spread of Mff over time for each release strategy > :PROPERTIES: > :results: graphics > :file: SpreadOverTime.pdf > :width: 4 > :height: 8 > :pointsize: 8 > :END: > #+begin_src R > plot(runif(100)) > #+end_src > > * This doesn't > Display boxplot of spread of Mff over time for each release strategy > :PROPERTIES: > :results: graphics > :file: test.pdf > :width: 4 > :height: 8 > :pointsize: 8 > :title: "test" > :END: > #+begin_src R > plot(runif(100)) > #+end_src > > Error message: > > Error in pdf(file = "test.pdf", width = 4, height = 8, pointsize = 8, : > object 'test' not found > Calls: -> -> pdf > Execution halted > > Cheers, > > Rainer > > - -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. > (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: Rainer@krugs.de > > Skype: RMkrug > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk9h34AACgkQoYgNqgF2egpEAgCfWUPrimW6av6/m7PU+KgBnNu+ > BegAn2ZWnAhWvflhDKw8225qt9vCkqJg > =4gNf > -----END PGP SIGNATURE----- -- Eric Schulte http://cs.unm.edu/~eschulte/