From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28459 Path: news.gmane.org!not-for-mail From: "Johan Sandblom" Newsgroups: gmane.comp.tex.context Subject: Re: Writing a ConTeXt module for R Date: Wed, 7 Jun 2006 12:00:22 +0200 Message-ID: <97a06f070606070300x29c35fc7w9bcb06b95fa04806@mail.gmail.com> References: <97a06f070606061100o2cd059bawa46a56d19e9f7c7@mail.gmail.com> <97a06f070606061230t6e473141i84e145bd204f49bd@mail.gmail.com> <44868945.5050108@elvenkind.com> Reply-To: johan.sandblom@ki.se, 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 1149768862 31076 80.91.229.2 (8 Jun 2006 12:14:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jun 2006 12:14:22 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 08 14:14:20 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 1FoJOr-0007P2-KW for gctc-ntg-context-518@m.gmane.org; Thu, 08 Jun 2006 14:14:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59F4612796; Thu, 8 Jun 2006 14:14:09 +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 02728-08-5; Thu, 8 Jun 2006 14:14:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 42EC9127BD; Thu, 8 Jun 2006 14:13:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 741B2127C8 for ; Wed, 7 Jun 2006 11:07:22 +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 02073-01 for ; Wed, 7 Jun 2006 11:07:20 +0200 (CEST) Original-Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.201]) by ronja.ntg.nl (Postfix) with SMTP id 07E27127B0 for ; Wed, 7 Jun 2006 11:07:17 +0200 (CEST) Original-Received: by nz-out-0102.google.com with SMTP id n29so142348nzf for ; Wed, 07 Jun 2006 03:07:17 -0700 (PDT) Original-Received: by 10.65.107.20 with SMTP id j20mr219416qbm; Wed, 07 Jun 2006 03:00:23 -0700 (PDT) Original-Received: by 10.64.242.11 with HTTP; Wed, 7 Jun 2006 03:00:22 -0700 (PDT) Original-To: "Taco Hoekwater" In-Reply-To: <44868945.5050108@elvenkind.com> Content-Disposition: inline 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:28459 Archived-At: Thank you for your explanations, and yes I probably do need percent signs if my test case had been more severe. Hans, with characteristic swiftness, already sent me back a vastly improved version which I will test as soon as I get a chance. Johan 2006/6/7, Taco Hoekwater : > > I do not have R installed here. but: > > Johan Sandblom wrote: > > > > % I would like to reduce this two-stage call, but then line-endings disappear > > This two-stage approach is required unless each statement in R is > terminated uniquely, by something like a semicolon because then > you could redefine the semicolon at the writing stage. > > > \def\startR% > > {\bgroup > > \obeylines > > \catcode`\%=\@@letter > > \catcode`\#=\@@letter > > \dostartR% > > }% > > Don't you need percent signs at the end of the @@letter lines? > > > \stopmode > > \typeRout% > > \egroup}% > > You can make that > > \stopmode > \egroup > \typeRout } > > because \typefile doesnt need \obeylines > > Cheers, Taco > -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell