[ESS] Sweave, Emacs GNU

Ista Zahn istazahn at gmail.com
Tue Jan 19 15:16:11 CET 2010

On Windows I think you need sweave.bat instead of sweave.sh. See

You'll also need to edit
"Sweave" "~/script/Sweave.sh -ld -nc %s"
to point to sweave.bat

Good luck!
On Tue, Jan 19, 2010 at 9:02 AM, E T <2nuzzbot at gmail.com> wrote:
> Hi,
> If anyone can please give advice on adding "Sweave" to  the command menu in
> Emacs GNU, it would be greatly appreciated.
> I was working on a mac and had "sweave" in the command drop-down menu  of
> Aquamacs ... by using the code below. However I do not know how to apply
> this
> on a windows platform. Please help.
> 1) Typing the following in the terminal:
> sudo chmod +x ~/script/Sweave.sh
> 2) Typing the following in the Aquamacs preference file:
> '(reftex-plug-into-AUCTeX t)
> '(text-mode-hook (quote (text-mode-hook-identify)))
>  (autoload 'reftex-mode    "reftex" "RefTeX Minor Mode" t)
>  (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" t)
>  (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
>  (add-hook 'latex-mode-hook 'turn-on-reftex)
> (add-hook 'Rnw-mode-hook
>  (lambda ()
>     (add-to-list 'TeX-command-list
>        '("Sweave" "~/script/Sweave.sh -ld -nc %s"
>        TeX-run-command nil t :help "Run Sweave") t)
>        (setq TeX-command-default "Sweave")))
>        [[alternative HTML version deleted]]
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology

More information about the ESS-help mailing list