From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: [babel] Replace results with ascii package caption Date: Mon, 05 Mar 2012 06:48:10 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4b5O-0002sb-FZ for emacs-orgmode@gnu.org; Mon, 05 Mar 2012 11:48:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4b5J-00074Y-FM for emacs-orgmode@gnu.org; Mon, 05 Mar 2012 11:48:34 -0500 Received: from plane.gmane.org ([80.91.229.3]:33817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4b5J-00074G-8f for emacs-orgmode@gnu.org; Mon, 05 Mar 2012 11:48:29 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S4b5E-0003J0-JE for emacs-orgmode@gnu.org; Mon, 05 Mar 2012 17:48:24 +0100 Received: from cpe-24-94-66-191.hawaii.res.rr.com ([24.94.66.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Mar 2012 17:48:24 +0100 Received: from tsd by cpe-24-94-66-191.hawaii.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Mar 2012 17:48:24 +0100 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: emacs-orgmode@gnu.org Aloha all, The code block at the bottom appends its results, rather than replacing them. Here are the header arguments: Name: test-replace-results Lang: R Header Arguments: :cache no :exports code :hlines no :noweb yes :padnewline yes :results raw output replace :session none :tangle no Everything works fine without the ascii package caption argument. * Babel replace results #+name: test-replace-results #+header: :results output raw #+BEGIN_SRC R library(ascii) cap <- "Test replace results" x <- runif(100) y <- ascii(quantile(x),include.colnames=T,header=T,caption=cap) print(y,type="org") rm(cap,x,y) #+END_SRC #+RESULTS: test-replace-results #+CAPTION: Test replace results | 0% | 25% | 50% | 75% | 100% | |------+------+------+------+------| | 0.02 | 0.28 | 0.49 | 0.78 | 0.98 | #+CAPTION: Test replace results | 0% | 25% | 50% | 75% | 100% | |------+------+------+------+------| | 0.01 | 0.21 | 0.44 | 0.76 | 1.00 | I'm using Org-mode version 7.8.03 (release_7.8.03.546.gf6ea). All the best, Tom -- Thomas S. Dye http://www.tsdye.com