emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: Neuwirth Erich <erich.neuwirth@univie.ac.at>
Cc: emacs-orgmode@gnu.org
Subject: Re: :var problems with R
Date: Thu, 21 Jun 2012 09:04:31 +0200	[thread overview]
Message-ID: <CAMXnza2gUBON2G_79Cc842yDJ7R+af9OjASbC+B_w9LNsm_MFg@mail.gmail.com> (raw)
In-Reply-To: <CA7B678F-2E1D-4765-83B0-BE73C7A0392A@univie.ac.at>

Hi Neuwirth,

On Thu, Jun 21, 2012 at 8:14 AM, Neuwirth Erich
<erich.neuwirth@univie.ac.at> wrote:
> The following works
> #+name: xvar
> #+begin_src emacs-lisp
> "ahaRx"
> #+end_src

Why are you not using something that you know works? Try the following
for example.

#+name: xvar
|"ahaRx"|

#+name: myblock
#+begin_src R :var xxx=xvar
xxx
#+end_src

#+RESULTS: myblock
: ahaRx

As I understand it, Babel can read from tables and lists only.
Actually, to me, reading from a block of text doesn't make much sense
for a source block. What kind of data structure would it represent
(other than a long string of course :-p)?

GL

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2012-06-21  7:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21  6:14 :var problems with R Neuwirth Erich
2012-06-21  7:04 ` suvayu ali [this message]
2012-06-21 18:26   ` Neuwirth Erich
2012-06-21 16:02 ` 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=CAMXnza2gUBON2G_79Cc842yDJ7R+af9OjASbC+B_w9LNsm_MFg@mail.gmail.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=erich.neuwirth@univie.ac.at \
    /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).