From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: :var problems with R Date: Thu, 21 Jun 2012 06:02:46 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShjqR-0004dX-1x for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 12:02:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShjqP-00030K-0Y for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 12:02:54 -0400 Received: from oproxy8-pub.bluehost.com ([69.89.22.20]:59942) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ShjqO-0002zP-L8 for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 12:02:52 -0400 In-Reply-To: (Neuwirth Erich's message of "Thu, 21 Jun 2012 08:14:11 +0200") 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: Neuwirth Erich Cc: emacs-orgmode@gnu.org Neuwirth Erich 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