The resolution to my problem was specific to Mac OS X and had nothing to do
with the R module in particular. In case others have a similar problem, here
is my solution.
First, write18 must be enabled. As described by Aditya Mahajan, edit
/usr/local/teTeX/texmf.cnf so that shell_escape = t.
I can confirm that this works from the command line:
R CMD BATCH -q --save --restore rsample-r-1.tmp rsample-r-1.tmp.out
using the sample file from the r module. Running this command for each of the r
segments will produce the desired output. What I haven't determined is how to
modify the r
I think some quoting is required:
\def\runR
{\executesystemcommand{texmfstart
--ifchanged=\Rfile\space --direct R CMD BATCH
-q --save --restore \Rfile\space \Rfile.out}}
works here, but then I am on Linux. I think eventually Mac expertise
may be required.
Johan
2006/7/5, Matthew
I now discovered a side effect of using the R CMD BATCH invocation
instead of the piping. With the CMD R outputs the setting of options
in the first line and the result of proc.time at the end. Perhaps not
a problem, but it does require three more typed lines per R block.
Johan
2006/7/5, Johan
I get no such output, either to stdout or in the log, in fact nothing
even similar. Does the ...disabled indicate that it is not run,
possibly because of something TeX/ConTeXt-related?
Johan
2006/7/5, Matthew Routley [EMAIL PROTECTED]:
Johan Sandblom jsandblom at gmail.com writes:
I think
On Wed, 5 Jul 2006, Matthew Routley wrote:
Johan Sandblom jsandblom at gmail.com writes:
I think some quoting is required:
\def\runR
{\executesystemcommand{texmfstart
--ifchanged=\Rfile\space --direct R CMD BATCH
-q --save --restore \Rfile\space \Rfile.out}}
works here,
Aditya Mahajan adityam at umich.edu writes:
This means that write18 is disabled on your system, so tex cannot
execute any system commands. This is a security feature and most
intallation disable write18 by default. You need to edit your
texmf.cnf file to enable it. Search for texmf.cnf
Johan Sandblom wrote:
\def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space
--direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}}
or some such, I do not really understand the quoting. The invocation
should change, options should not and redirectors should go away.
2006/7/2, Hans Hagen [EMAIL PROTECTED]:
Johan Sandblom wrote:
I can't really think why it wouldn't work then. Perhaps it is to do
with \write18 and the right of TeX to run external programs? Or maybe
R on the mac does not take the same command-line options? In that case
the output of the
Hi Hans,
* Hans Hagen [EMAIL PROTECTED] [060702 13:25]:
one problem could be that R has this piping; i wonder why a program that
takes a 50 meg installation does not support something --output or i
must have missed something
R does support redirecting output to a file. Use
R CMD BATCH
Olaf Mersmann wrote:
Hi Hans,
* Hans Hagen [EMAIL PROTECTED] [060702 13:25]:
one problem could be that R has this piping; i wonder why a program that
takes a 50 meg installation does not support something --output or i
must have missed something
R does support redirecting
\def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space
--direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}}
or some such, I do not really understand the quoting. The invocation
should change, options should not and redirectors should go away. Not
sure if this is better
I can't really think why it wouldn't work then. Perhaps it is to do
with \write18 and the right of TeX to run external programs? Or maybe
R on the mac does not take the same command-line options? In that case
the output of the texexec run should be revealing. R takes more than a
second to start up
I spotted the announcement of the use of R in ConTeXt and was quite interested
in trying it out. However, so far I haven't been able to get it to work. It
appears that R is not being called by texexec and the .tmp.out are not being
found, despite the fact that they are being produced.
Are there
It appears R is not found. Is it on the path? Does it have the same
name on the Mac?
Regards, Johan
2006/6/28, Matthew Routley [EMAIL PROTECTED]:
I spotted the announcement of the use of R in ConTeXt and was quite interested
in trying it out. However, so far I haven't been able to get it to
15 matches
Mail list logo