On 2013-06-18, at 3:23 PM, Erik Margraf <erik.margraf@gmail.com> wrote:

Dear List,

does the R module work? To be more specific "m-r.tex". I tried to 
run the test named as "Johan's test file" and got the result below

--------------------

! Undefined control sequence.

system          > tex > error on line 20 in file /home/erik/tmp/Glockner/t.tex: Undefined control sequence ...

10     
11     \starttext
12     
13     First a test of whether the workspace is persistent:
14     bla
15     
16     \startR
17     a <- "bla"
18     b <- "blabla"
19     ls()
20 >>  \stopR
21     
22     One \R run ends, another begins.
23     
24     \startR
25     ls()
26     \stopR
27     
28     Now follows a hidden \R run which cleans the R workspace
29     
30     \startRhidden

\Rfile ^@-\TEXbufferfile 
                        {\Rbufferprefix \nofRfiles }
<argument> texmfstart --ifchanged=\Rfile 
                              \space --direct R CMD BATCH -q --save --restore \
\executesystemcommand #1x-\ctxlua {os.execute([[#1
                                                  ]])}
\stopR #-\doifmode {*\v!first }\runR 
                                     \typefile {\Rfile .out}
l.20 \stopR

------------------------------


I'm using:

OS: Debian 7.0 64Bit

context --version: mtx-context     | current version: 2013.06.10 22:51

R --version: R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

Any hint, even "doesn't work at the moment", will be welcome

You can use the filter module

https://github.com/adityam/filter/wiki/R

Aditya