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, but then I am on Linux. I think eventually Mac expertise
>> may be required.
>
> Unfortunately, the quoting doesn't help. Closer inspection of the log file
> reveals lines such as:
>
> system(texmfstart --ifchanged=test-r-1.tmp --direct R CMD BATCH "-q
> --save --restore test-r-1.tmp test-r-1.tmp.out")...disabled.
>
> with both the original \runR and new, batch mode.

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 using

texmfstart --locate texmf.cnf

open that file in your favourite editor.

Search for shell_escape and set it to true by

shell_escape = t

Save the file and write18 should work.

Rerun texexec on your file and look at the log file. You should get

system(....) executed.


Aditya
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to