Re: [R] Setting up Xemacs + Sweave

About this list Date view Thread view Subject view Author view Attachment view

From: A.J. Rossini (rossini@blindglobe.net)
Date: Thu 24 Apr 2003 - 22:13:13 EST


Message-id: <878yu0qejq.fsf@jeeves.blindglobe.net>

Martin Maechler <maechler@stat.math.ethz.ch> writes:

>>>>>> "Tamas" == Tamas Papp <tpapp@axelero.hu>
>>>>>> on Wed, 23 Apr 2003 19:44:00 +0200 writes:
>
>
> Tamas> I have tried to setup my Xemacs for use with Sweave,
> Tamas> which I indend to learn. I have followed the
> Tamas> instructions in the Sweave FAQ, that is to say, I put
>
> (defun Rnw-mode ()
> (require 'ess-noweb)
> (noweb-mode)
> (if (fboundp 'R-mode)
> (setq noweb-default-code-mode 'R-mode)))
> (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
> (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))
>
> (setq reftex-file-extensions
> '(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
> (setq TeX-file-extensions
> '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
>
> Tamas> in my init.el. However, if I open an Rnw file
> Tamas> (/usr/lib/R/library/tools/Sweave/Sweave-test-1.Rnw) it is not treated
> Tamas> as one, only if I evaluate (Rnw-mode) using M-: on the buffer. My
> Tamas> auto-mode-alist looks like this:
>
> Tamas, have you loaded/enable ESS at all in your init.el file?
> e.g., does
> M-x R
> call R?
> ess-noweb I think is supposed to be called in to a `loaded' ESS
> environment.
>
> (but then I'm only rarely using Xemacs, but rather GNU emacs and
> I also don't know about the Debian package setup of these).

They are pretty much the same, so your advice is correct, Martin.

best,
-tony

-- 
A.J. Rossini rossini@u.washington.edu http://software.biostat.washington.edu/ 
Biostatistics, U Washington and Fred Hutchinson Cancer Research Center 
FHCRC:Tu: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email 
UW  : Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX 
CONFIDENTIALITY NOTICE: This e-mail message and any attachments ... {{dropped}}

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:43 EST