emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG] [babel] R graphics header arg :units


From: Thomas S. Dye
Subject: Re: [O] [BUG] [babel] R graphics header arg :units
Date: Sun, 17 Jun 2012 12:06:51 -1000

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 <address@hidden> 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



reply via email to

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