Re: [O] How to write a org babel hook, which can manupulate result

2014-03-26 Thread Feng Shu
Daimrod writes: > Feng Shu writes: > >> Daimrod writes: >> >>> Feng Shu writes: >>> Hi: >>> Hi Feng, >>> >>> Look at the :post header argument. >>> (info "(org) post") >> >> How to use elisp in :post directly, > > I don't think you can. > > You have to use it this way (not tested): > #+NA

Re: [O] How to write a org babel hook, which can manupulate result

2014-03-26 Thread Daimrod
Feng Shu writes: > Daimrod writes: > >> Feng Shu writes: >> >>> Hi: >> Hi Feng, >> >> Look at the :post header argument. >> (info "(org) post") > > How to use elisp in :post directly, I don't think you can. You have to use it this way (not tested): #+NAME: align-multi-table #+BEGIN_SRC emacs

Re: [O] How to write a org babel hook, which can manupulate result

2014-03-26 Thread Feng Shu
Daimrod writes: > Feng Shu writes: > >> Hi: > Hi Feng, > > Look at the :post header argument. > (info "(org) post") How to use elisp in :post directly, for example: #+begin_src R :results output raw drawer :post (align-multi-table) #+end_src #+begin_comment (defun align-multi-table (&optio

Re: [O] How to write a org babel hook, which can manupulate result

2014-03-26 Thread Feng Shu
Daimrod writes: > Feng Shu writes: > >> Hi: > Hi Feng, > > Look at the :post header argument. > (info "(org) post") Thanks ... > >> I want to write a hook to menupulate org babel output, >> The problem is: How can I get two points info: [pointA] and [pointB] >> in my hook function? >> >> #+begi

Re: [O] How to write a org babel hook, which can manupulate result

2014-03-26 Thread Daimrod
Feng Shu writes: > Hi: Hi Feng, Look at the :post header argument. (info "(org) post") > I want to write a hook to menupulate org babel output, > The problem is: How can I get two points info: [pointA] and [pointB] > in my hook function? > > #+begin_src R :results output raw drawer > tbl <- dat

[O] How to write a org babel hook, which can manupulate result

2014-03-26 Thread Feng Shu
Hi: I want to write a hook to menupulate org babel output, The problem is: How can I get two points info: [pointA] and [pointB] in my hook function? #+begin_src R :results output raw drawer tbl <- data.frame(a=c(1,2,3),b=c(3,2,1)) print(ascii(tbl),type="org") #+END_SRC #+RESULTS: :RESULTS: [poin