From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29158 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Difficulties using the r module Date: Wed, 5 Jul 2006 13:57:39 -0400 (EDT) Message-ID: References: <97a06f070607010208g2f00f9e3gcc47e79d80240833@mail.gmail.com> <44A7AD0E.6090107@wxs.nl> <20060702120059.GA17967@kimberly.tako.de> <44A82F4A.2000501@wxs.nl> <97a06f070607021400g5a8c3064i1e2533832ba7508f@mail.gmail.com> <44A8C6A8.10209@wxs.nl> <97a06f070607050906m6bcf8a0doa58ada9460f3e510@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152122328 12550 80.91.229.2 (5 Jul 2006 17:58:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2006 17:58:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 05 19:58:47 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FyBe4-000730-Gb for gctc-ntg-context-518@m.gmane.org; Wed, 05 Jul 2006 19:58:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DBF2312830; Wed, 5 Jul 2006 19:58:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22933-06-7; Wed, 5 Jul 2006 19:58:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 546EF127CF; Wed, 5 Jul 2006 19:58:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB26D127D4 for ; Wed, 5 Jul 2006 19:58:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23113-02-2 for ; Wed, 5 Jul 2006 19:57:48 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with SMTP id 11B00127BF for ; Wed, 5 Jul 2006 19:57:44 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY tombraider.mr.itd.umich.edu ID 44ABFD94.E6597.30236 ; 5 Jul 2006 13:57:42 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29158 Archived-At: On Wed, 5 Jul 2006, Matthew Routley wrote: > Johan Sandblom 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