Rainer M Krug <rai...@krugs.de> 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: rai...@krugs.de > > Skype: RMkrug -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D