From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Using :prologue and :epilogue with unbalanced brackets Date: Mon, 20 Jan 2014 08:34:26 -0700 Message-ID: <87ha8yy8c1.fsf@gmail.com> References: <52DD2E8A.704@krugs.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5Gv0-0001va-BZ for Emacs-orgmode@gnu.org; Mon, 20 Jan 2014 10:37:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5Guv-000761-Ln for Emacs-orgmode@gnu.org; Mon, 20 Jan 2014 10:37:42 -0500 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:48950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5Guv-00074f-EK for Emacs-orgmode@gnu.org; Mon, 20 Jan 2014 10:37:37 -0500 Received: by mail-pb0-f46.google.com with SMTP id um1so2104238pbc.5 for ; Mon, 20 Jan 2014 07:37:36 -0800 (PST) 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: Rainer@krugs.de Cc: emacs orgmode-mailinglist Rainer M Krug writes: > Hi > > I would like to use :prologue and :epilogue to enclose the code block > in a local({}) block, i.e. > > * test > #+begin_src R :prologue local({ :epilogue }) > qwerty <- "test" > #+end_src > I tried wrapping the prologue and epilogue values in quotes so that they would be interpreted as strings, and I no longer see the problem you describe and it works in a session, but I get a different R issues outside of a session. Best, > > But the problem seems to be the unbalanced brackets, and everything is > passed on as the prologue, as I get the error: > > Error: unexpected ':' in: > "{ > local({ :" > Execution halted > > Can I somehow use unbalanced brackets, or is this a missing option in > epilogue and prologue? > > Cheers, > > Rainer > > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation > Biology, UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: Rainer@krugs.de > > Skype: RMkrug -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D