From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: [BUG] [babel] R graphics header arg :units Date: Mon, 18 Jun 2012 00:05:18 +0100 Message-ID: <87r4tdbkup.fsf@gmail.com> References: <871uldd738.fsf@med.uni-goettingen.de> Reply-To: emacs-orgmode@gnu.org, Myles English Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgORQ-0004ca-QR for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 18:59:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgORP-0007Ps-45 for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 18:59:32 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:40319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgORO-0007Pf-Rj for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 18:59:31 -0400 Received: by wefh52 with SMTP id h52so4174834wef.0 for ; Sun, 17 Jun 2012 15:59:28 -0700 (PDT) In-Reply-To: <871uldd738.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Sun, 17 Jun 2012 22:19:39 +0200") 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: Andreas Leha Cc: emacs-orgmode Mode Hi Andreas, >> On Sun, 17 Jun 2012 22:19:39 +0200, Andreas Leha said: > Hi all, > I am having troubles in using the header argument :units which is > implemented for R source blocks. Example: > #+begin_src R :results graphics :file wideplot.png :width 14 :height 7 :units "cm" > plot(1:10, 1:10) > #+end_src It seems to work if you do this :units "'cm'" :res 100, i.e.: #+begin_src R :results graphics :file wideplot.png :width 14 :height 7 :units "'cm'" :res 100 plot(1:10, 1:10) #+end_src > This expands to > : png(filename="wideplot.png",height=7,units=cm,width=14) > : plot(1:10, 1:10) > : dev.off() > and leads -- when evaluated -- to the error > : Fehler in match.arg(units, c("in", "px", "cm", "mm")) : > : 'arg' must be NULL or a character vector > I guess this is a bug, correct? Otherwise, how do I correctly use > this header argument? I can't comment on whether it is a bug or not. > Regards, > Andreas -- Myles