* Does the R-Module work (or how)?
@ 2013-06-18 19:23 Erik Margraf
2013-06-18 19:46 ` Aditya Mahajan
0 siblings, 1 reply; 2+ messages in thread
From: Erik Margraf @ 2013-06-18 19:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1724 bytes --]
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
Thanks
Erik
[-- Attachment #1.2: Type: text/html, Size: 3916 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Does the R-Module work (or how)?
2013-06-18 19:23 Does the R-Module work (or how)? Erik Margraf
@ 2013-06-18 19:46 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2013-06-18 19:46 UTC (permalink / raw)
To: erik.margraf, mailing list for ConTeXt users
Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2101 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 5550 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-18 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-18 19:23 Does the R-Module work (or how)? Erik Margraf
2013-06-18 19:46 ` Aditya Mahajan
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 NNTP newsgroup(s).