From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [BUG] [babel] R graphics header arg :units Date: Sun, 17 Jun 2012 12:06:51 -1000 Message-ID: References: <871uldd738.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgNcW-00064u-Pf for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 18:06:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgNcU-00042e-UQ for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 18:06:56 -0400 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:48535) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SgNcU-00040s-Jj for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 18:06:54 -0400 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@gnu.org Hi Andreas, I believe the author of ob-R.el no longer reads the list. Perhaps you could propose a patch? All the best, Tom Andreas Leha writes: > 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 > > > 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? > > Regards, > Andreas > > > -- Thomas S. Dye http://www.tsdye.com