Re: [Orgmode] R code not producing expected results

2010-08-13 Thread David Hajage
I think you need to add 'results output org' to the header. Do not try to convert ascii objects into data.frame, ascii() just print several classes or R objects with org markup. Not all R objects are supported, see methods(ascii). Some examples here: http://orgmode.org/worg/org-contrib/babel/exam

Re: [Orgmode] R code not producing expected results

2010-08-13 Thread Charles C. Berry
On Thu, 12 Aug 2010, Blanchette, Marco wrote: Dear all, Sorry if this is something totally obvious but I am learning to use org-mode for my everyday work with R. I just installed the latest stable release of org-mode (v7.01g) on top of GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, N

Re: [Orgmode] R code not producing expected results

2010-08-12 Thread Thomas S. Dye
Aloha Marco, Here is the code behind the Worg page: #+begin_src R :results output org library(ascii) options(asciiType="org") ascii(summary(table(1:4, 1:4))) #+end_src This works here. The key seems to be the header argument :results output #+BEGIN_SRC R :results output library(ascii)

[Orgmode] R code not producing expected results

2010-08-12 Thread Blanchette, Marco
Dear all, Sorry if this is something totally obvious but I am learning to use org-mode for my everyday work with R. I just installed the latest stable release of org-mode (v7.01g) on top of GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25). I also installed the CRAN ascii