emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Neuwirth Erich <erich.neuwirth@univie.ac.at>
Cc: emacs-orgmode@gnu.org
Subject: Re: :var problems with R
Date: Thu, 21 Jun 2012 06:02:46 -1000	[thread overview]
Message-ID: <m17gv0tzyx.fsf@tsdye.com> (raw)
In-Reply-To: <CA7B678F-2E1D-4765-83B0-BE73C7A0392A@univie.ac.at> (Neuwirth Erich's message of "Thu, 21 Jun 2012 08:14:11 +0200")

Neuwirth Erich <erich.neuwirth@univie.ac.at> writes:

> The following works
> #+name: xvar
> #+begin_src emacs-lisp
> "ahaRx"
> #+end_src
>
> #+RESULTS: xvar
> : ahaR
> #+name: myblock
> #+begin_src R :var xxx=xvar
> xxx
> #+end_src
>
> #+RESULTS: myblock
> : ahaRx
>
> But when I replace emacs-lisp with R in the first code block, it does
> not work any more.
> I think it should because R also returns the character value in that case.
>
> Any ideas?
>

This works here:

#+name: xvar
#+begin_src R
"ahaRx"
#+end_src

#+RESULTS: xvar
: ahaRx


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

#+RESULTS: myblock
: ahaRx

You don't say what doesn't work, which makes it difficult to diagnose
what might be going wrong on your end.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

      parent reply	other threads:[~2012-06-21 16:02 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
2012-06-21 18:26   ` Neuwirth Erich
2012-06-21 16:02 ` Thomas S. Dye [this message]

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=m17gv0tzyx.fsf@tsdye.com \
    --to=tsd@tsdye.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).