[ESS] ESS-help Digest, Vol 113, Issue 2
Quefeng Li
liquefeng at gmail.com
Wed Jul 18 22:20:32 CEST 2012
Hello
Emacs 24-1 comes with elpa, which could easily install packages like ess
for you.
Add the following to your .emacs
(require 'package)
(package-initialize)
(setq package-archives
'(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")))
Then, eval-buffer or restart emacs. Use M-x list-packages to invoke
elpa. It will give you a long list of available packages. ESS is among
them. Install ESS from that list, and then
(require 'ess-site)
should load ESS for you.
By the way, the ESS package is installed in ~/.emacs.d/elpa/ by default.
Cheers!
On 7/18/2012 5:00 AM, ess-help-request at r-project.org wrote:
> Send ESS-help mailing list submissions to
> ess-help at 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 at r-project.org
>
> You can reach the person managing the list at
> ess-help-owner at 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. help (Xin Liu)
> 2. Re: Combining sweave and pdflatex into one helper function
> (Marius Hofert)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 17 Jul 2012 19:34:36 -0500
> From: Xin Liu <lucy.xin.liu at gmail.com>
> To: ess-help at r-project.org
> Subject: [ESS] help
> Message-ID:
> <CAO3iPPqZr-sXAyLS5jwLAUL7O_9=2dvHkQAsx+niKyerj4vCbQ at mail.gmail.com>
> Content-Type: text/plain
>
> Hello,
>
> I've installed 'GNU Emacs 24.1' in my computer, but I had a hard time to
> install 'ESS'. I do see the directory "C:\Program Files\GNU Emacs
> 24.1\site-lisp" in my computer, but find the next step hard to follow,
> e.g., Add the line (require 'ess-site) to ~/.emacs and restart Emacs. I
> don't quite understand these instructions. Would you help? Thanks a lot.
>
> Lucy
>
>
> 1. Extract all the files from ess-VERSION.zip (by double clicking on it
> and selecting “Extract all files” which launches the Folders Extraction
> Wizard) into an ESS sub-directory of the site-lisp directory that exists
> for packages like ESS. If GNU Emacs was installed in the default
> location, then this directory can be found somewhere like C:\Program
> Files\GNU Emacs\emacs-22.x\site-lisp
> 2. Add the line
>
> (require 'ess-site)
>
> to ~/.emacs and restart Emacs.
> 3. If you see a buffer named *ESS*, then the simple instructions were
> most likely successful. If not, then read further.
> 4. It could be you have an older version of Emacs or some other problem
> with your installation. Either way, you may need to edit
> C:\ess\ess-VERSION\lisp\ess-site.el manually. If that is the case, then
> you should create a directory just for ESS like C:\ess and unpack
> ESSthere. That way, your changes to
> C:\ess\ess-VERSION\lisp\ess-site.el will not be lost if you update Emacs
> later.
> 5. Replace the line above with
>
> (load "C:/ess/ess-VERSION/lisp/ess-site")
>
> in ~/.emacs and restart Emacs.
>
> [[alternative HTML version deleted]]
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 18 Jul 2012 09:45:47 +0200
> From: Marius Hofert <marius.hofert at math.ethz.ch>
> To: Emacs ESS <ess-help at r-project.org>
> Subject: Re: [ESS] Combining sweave and pdflatex into one helper
> function
> Message-ID: <87zk6xpl5g.fsf at math.ethz.ch>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> I saw the post of Dirk and Eddelbuettel. My setting I used so far to get Sweave
> with AUCTeX to work was this:
>
> ;; see http://thread.gmane.org/gmane.emacs.ess.general/2406
> (setq TeX-file-extensions
> '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo" "dtx"))
> (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
> (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Snw-mode))
>
> ;; linking ESS with AUCTeX
> ;; - from http://thread.gmane.org/gmane.emacs.ess.general/2406 and
> ;; adapted from http://blog.nguyenvq.com/2009/05/31/emacs-auctex-rubber-sweave/
> ;; - for syntax of TeX-command-list, see C-h v TeX-command-list
> ;; - added --encoding=utf-8 (alternative: use \usepackage[utf8]{inputenc})
> (add-hook 'Rnw-mode-hook
> (lambda ()
> (add-to-list 'TeX-command-list
> '("Sweave" "R CMD Sweave --encoding=utf-8 %s"
> TeX-run-command nil t :help "Run Sweave") t)
> (add-to-list 'TeX-command-list
> '("Stangle" "R CMD Stangle --encoding=utf-8 %s"
> TeX-run-command nil t :help "Run Stangle") t)
> (setq TeX-command-default "Sweave")))
>
> This gives the option 'Sweave' on C-c C-c. I recently saw the new variable
> ess-swv-plug-into-AUCTeX-p and set it via: (setq ess-swv-plug-into-AUCTeX-p t)
>
> However, on C-c C-c there is no option 'Sweave'. What am I missing?
>
> Cheers,
>
> Marius
>
>
>
> --
> ETH Zurich
> Dr. Marius Hofert
> RiskLab, Department of Mathematics
> HG E 65.2
> R?mistrasse 101
> 8092 Zurich
> Switzerland
>
> Phone +41 44 632 2423
> http://www.math.ethz.ch/~hofertj
>
>
>
> ------------------------------
>
> _______________________________________________
> ESS-help mailing list DIGESTED
> ESS-help at r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
> End of ESS-help Digest, Vol 113, Issue 2
> ****************************************
>
More information about the ESS-help
mailing list