Hi Graham,

These pdf and png images are being created by R, Babel is simply passing
commands to the R process setting the output device according to the
:file argument, so for example ":file fig1.pdf" would result in wrapping
your code in

pdf(file="fig1.pdf")
<<your-code-here>>
dev.off

I'd suggest looking at the R session ("bats" in your case) to see what
errors if any are being thrown by R during execution of the boxplot
command.

Best -- Eric

Graham Smith <myotis...@gmail.com> writes:

> PDFs created by Babel are giving a file corrupt message when trying to
> open them and a format not recognised message if I try pngs,
>
> Same files created directly from R are fine.
>
> This is with Ubuntu 10.04 and Org-mode version 6.36trans 
> (release_7.01h.94.g25ac
>
> Example of code I am using is below.
>
> Can anyone suggest what I am doing wrong?
>
> Many thanks,
>
> Graham
>
> #+srcname:boxpip45byyear
> #+begin_src R :session bats :file boxpip45byyear.pdf :exports code
> boxplot(boxplot(allbats$count[allbats$species=="p45"]~allbats$year[allbats$species=="p45"])
> #+end_src
>
> #+results: boxpip45byyear
> [[file:boxpip45byyear.pdf]]
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to