Hi Marta

I do work with Ubuntu and use emacs + R without any problem, as yours 
should do. Have you installed ESS correctly? (Try

sudo apt-get install ess

Then try to paste the following code in your .emacs file (it should be 
in your home directory; Control+h will allow you to see these hidden 
files), restart emacs and open an R session. The code also contains code 
to work with Rsweave to combine R and LaTeX:

(require 'ess-site)
(require 'ess-eldoc)
(setq TeX-file-extensions
       '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Snw-mode))
(add-hook 'Rnw-mode-hook
  (lambda ()
   (add-to-list 'TeX-expand-list '("%rnw" file "Rnw" t) t)
   (add-to-list 'TeX-command-list
    '("Stangle" "R CMD Stangle %rnw"
      TeX-run-command nil (latex-mode) :help "Run Stangle") t)
   (add-to-list 'TeX-command-list
    '("Sweave" "R CMD Sweave %rnw"
      TeX-run-command nil (latex-mode) :help "Run Sweave") t)
   (add-to-list 'TeX-command-list
  '("LatexSweave" "%l \"%(mode) \\input{%s}\""
;  '("LatexSweave" "%l %(mode) %s"
;    '("LatexSweave" "%l %(mode) test"
      TeX-run-TeX nil (latex-mode) :help "Run Latex after Sweave") t)
   (setq TeX-command-default "Sweave")))

  (setq TeX-PDF-mode t)


greetings

pep vallbé

On 02/06/2012 12:00 PM, ess-help-request@r-project.org wrote:
> Send ESS-help mailing list submissions to
> 	ess-help@r-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://stat.ethz.ch/mailman/listinfo/ess-help
> or, via email, send a message with subject or body 'help' to
> 	ess-help-request@r-project.org
>
> You can reach the person managing the list at
> 	ess-help-owner@r-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ESS-help digest..."
>
>
> Today's Topics:
>
>     1.  Emacs and R in Ubuntu 10.10 (Marta Gomez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 5 Feb 2012 12:02:45 +0000
> From: Marta Gomez<mg362@exeter.ac.uk>
> To:<ESS-help@stat.math.ethz.ch>
> Subject: [ESS] Emacs and R in Ubuntu 10.10
> Message-ID:<DE64EF60ACDF49E1B67E71360323499D@Shiki>
> Content-Type: text/plain
>
> To whom it may concern,
>
> I am trying to set up Emacs so that it sends my script to the R console
> instead of running R commander; but I seem to keep getting error of
> all sorts, and I can't do some of the steps that I see on the web.
> Please could you tell me (in as simple terms as possible in case maybe I missed
> something obvious and I can't see it) how to go about "synchronizing" R
> with Emacs?
>
> Thanks for the help!
> Marta
> 	[[alternative HTML version deleted]]
>
>
>
> ------------------------------
>
> _______________________________________________
> ESS-help mailing list  DIGESTED
> ESS-help@r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
> End of ESS-help Digest, Vol 108, Issue 3
> ****************************************
>

	[[alternative HTML version deleted]]

