[ESS] ESS and Windows 7

Daniel Nordlund djnordlund at verizon.net
Mon Feb 1 06:49:16 CET 2010


Vincent,

Thanks for the response.  I had seen your earlier post and thought that I had followed the instructions carefully.  But I just reinstalled everything and set the correct path to R in the site-start.el file, and now everything seems to function correctly.

Thanks again,

Dan

Daniel Nordlund
Bothell, WA USA


> -----Original Message-----
> From: Vincent Goulet [mailto:Vincent.Goulet at act.ulaval.ca]
> Sent: Sunday, January 31, 2010 8:44 PM
> To: Daniel Nordlund
> Cc: ess-help at stat.math.ethz.ch
> Subject: Re: [ESS] ESS and Windows 7
> 
> Daniel,
> 
> Le sam. 30 janv. à 15:43, Daniel Nordlund a écrit :
> 
> >
> > I am new to Emacs, ESS, and Windows 7 (long-time user of WinXP).  I
> installed R and Vincent Goulet's emacs-23.1-modified-4.exe in the default
> locations.  R starts fine and Gnu Emacs seems to run ok.
> >
> > But when I start Emacs, load an R code file, and try to start an
> inferior R session (either using the R menu icon or M-x R, asks for
> "starting data directory?"  I have found no way to continue on from there.
> Trying to accept the default results in either nothing happening, or an
> error message
> >
> > "apply: Spawning child process: invalid argument".
> 
> This message occurs when Emacs cannot find your installation of R. See my
> previous post in this forum for a solution.
> 
> HTH   Vincent
> 
> 
> >
> > Any suggestions as to what I am doing wrong?
> >
> > Dan
> >
> > Daniel Nordlund
> > Bothell, WA USA
> >
> >> -----Original Message-----
> >> From: ess-help-bounces at stat.math.ethz.ch [mailto:ess-help-
> >> bounces at stat.math.ethz.ch] On Behalf Of Paul Johnson
> >> Sent: Friday, January 22, 2010 4:00 PM
> >> To: Edith Hodgen
> >> Cc: ess-help at stat.math.ethz.ch
> >> Subject: Re: [ESS] ESS and Windows 7
> >>
> >> I made Emacs work on Windows 7 today.  If you install R and Vincent
> >> Goulet's enhanced version of Emacs with all of the default settings
> >> (don't fiddle with the path), then Emacs with ESS will "just work".
> >> x-R does start Rterm.exe.
> >>
> >> However, if you put R somewhere else, then you have to make the
> >> changes you described  in your note. But you have to do them
> >> CORRECTLY. See below.
> >>
> >> On Sat, Dec 26, 2009 at 4:42 PM, Edith Hodgen <edith.hodgen at gmail.com>
> >> wrote:
> >>> Hi
> >>>
> >>> I have a new computer operating under Windows 7 and am again facing
> the
> >>> trials of getting Emacs, ESS, R and LateX to work. This time the
> problem
> >>> seems to be around ESS and R (the rest, including spell checking,
> seems
> >>> fine, and R works on its own, but not in ess/macs).
> >>>
> >>> I've been following the instructions on the sites aimed at the less
> >>> competent, and have put ess here:
> >>>
> >>> c:/devel/emacs/site-lisp/ess:
> >>>
> >>> and R here:
> >>>
> >>> c:/devel/R/R-2.10.1/bin:
> >>>
> >>> Running addpm.exe also didn't seem to work quite as I remembered it,
> and
> >> I
> >>> had to go and make a short-cut to runemacs.exe. However, Emacs works,
> I
> >> get
> >>> a LaTeX environment, and I can check spelling.
> >>>
> >>> I've used the pattern of my previous .emacs files, with modifications
> >>> suggested for the newer releases.
> >>> In particular, I've tried both versions of the first of the following
> >>> sections (unsuccessfully)
> >>> ==================================
> >>> ;; ESS
> >>>
> >>> ;;(load "C:/devel/emacs/site-lisp/ess/lisp/ess-site")
> >>> (require 'ess-site)
> >>>
> >>> ;; R
> >>> (setq inferior-R-program-name "C:/devel/R/R-2.10.1/bin/Rterm.exe")
> >>
> >> Follow the example in the ess-site.el file, you NEED double slashes,
> >> "C://devel/R//R-2.10.1//bin//Rterm.exe"
> >>
> >> After fixing that, then DELETE ess-site.elc.  That's the byte compiled
> >> version that Emacs will use first, it will ignore your new el file if
> >> you leave the elc file.
> >>
> >> I've found some little malfunctions with Emacs and ESS, but I can
> >> assure you it works just as well with Windows 7 as it did with Vista
> >> (medium).
> >>
> >> pj
> >>
> >>
> >>
> >>
> >>> (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
> >>> ====================================
> >>>
> >>> I tried editing the ess-site.el file (I remember having to do that in
> >>> earlier versions), and leaving it as it was (equally unsuccessful).
> >>>
> >>> I then tried deleting the whole lot and downloading the GNU Emacs and
> >> ESS -
> >>> All-in-one installation file for MS Windows, by Vincent Goulet, but
> for
> >> some
> >>> reason, after downloading for several minutes, it went all shy and
> >> refused
> >>> to save the file (more than once - I did try again). I put a copy of
> his
> >>> site-start.el into the emacs/site-lisp directory and that also didn't
> >>> perform magic.
> >>>
> >>> My PATH is:
> >>>
> >>> C:\devel\MiKTeX
> >>>
> >>
> 2.8\miktex\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wb
> >>
> em;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\C:\tools\bin;C:\devel\emac
> >>
> s\bin;C:\devel\texmf\miktex\bin;C:\devel\ghostgum\ghostview\gsview\;c:\usr
> >>
> \local\bin;C:\devel\ghostgum\gs\gs8.51\lib;C:\devel\ghostgum\gs\gs8.51\bin
> >> ;C:\devel\MinGW\bin;c:\devel\Aspell\bin;C:\devel\R\R-2.10.1\bin
> >>>
> >>> I've double, triple, and quadruple-checked spelling everywhere (which
> >> means
> >>> I've probably overlooked something), and have searched on the Internet
> >> for
> >>> clues. I saw one other query about Windows 7, but that resolved
> itself,
> >> so
> >>> my guess is that it *should* work.
> >>>
> >>> In Emacs, M-x R causes the message: [No match]
> >>>
> >>> and there is no *ESS* buffer.
> >>>
> >>> Any assistance will be extremely gratefully received.
> >>>
> >>> Edith
> >>>
> >>>       [[alternative HTML version deleted]]
> >>>
> >>> ______________________________________________
> >>> ESS-help at stat.math.ethz.ch mailing list
> >>> https://stat.ethz.ch/mailman/listinfo/ess-help
> >>>
> >>
> >>
> >>
> >> --
> >> Paul E. Johnson
> >> Professor, Political Science
> >> 1541 Lilac Lane, Room 504
> >> University of Kansas
> >>
> >> ______________________________________________
> >> ESS-help at stat.math.ethz.ch mailing list
> >> https://stat.ethz.ch/mailman/listinfo/ess-help
> >
> > ______________________________________________
> > ESS-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list