[R] Sweave and Xemacs on Windows2000?

wolski wolski at molgen.mpg.de
Thu Feb 26 12:58:40 CET 2004


Trying to configure Xemacs to work with .snw files on windows 2000.  Tried to do it how it is described in the FAQ for Sweaves.

When starting xemacs with and Snw file
*ESS* buffer contains hundrets of lines and the few last ones.

 (ess-loop-timeout . 500000) (inferior-ess-primary-prompt . ^) (inferior-ess-secondary-prompt . ^) (comint-use-prompt-regexp-instead-of-fields . t) (inferior-ess-start-file) (inferior-ess-start-args . inferior-SAS-args-temp) (ess-local-process-name)) 

And no syntax highlighting in the *.Snw buffer


The xemacs files in my home in .xemacs directory look like

(load "D:/prog/XEmacs/xemacs-packages/lisp/auctex/tex-site")
(load "D:/prog/XEmacs/xemacs-packages/sweave-site.el")

.emacs (either in home or in home/.xemacs/ does not matter.)
(defun Rnw-mode ()
  (require 'ess-noweb)
  (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"))

More information about the R-help mailing list