emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: emacs-orgmode@gnu.org
Subject: [babel] Replace results with ascii package caption
Date: Mon, 05 Mar 2012 06:48:10 -1000	[thread overview]
Message-ID: <m18vjfq9it.fsf@tsdye.com> (raw)

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

             reply	other threads:[~2012-03-05 16:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-05 16:48 Thomas S. Dye [this message]
2012-03-05 17:03 ` [babel] Replace results with ascii package caption Eric Schulte
2012-03-05 17:25   ` Thomas S. Dye
2012-03-05 17:43     ` Eric Schulte
2012-03-05 17:56       ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m18vjfq9it.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).