From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: poti@potis.org Newsgroups: gmane.emacs.help Subject: Re: Can't open R in Emacs Date: Tue, 21 Aug 2007 02:33:30 -0400 Message-ID: <20070821063330.GA12906@mail.potis.org> References: <1186163463.463509.313420@d55g2000hsg.googlegroups.com> <1186203495.748845.86630@m37g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187678111 13848 80.91.229.12 (21 Aug 2007 06:35:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 06:35:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Hosley Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 08:35:08 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INNKR-0000f2-N6 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 08:35:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INNKR-0007d6-7B for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 02:35:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INNKA-0007d0-Hm for help-gnu-emacs@gnu.org; Tue, 21 Aug 2007 02:34:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INNK9-0007cl-BR for help-gnu-emacs@gnu.org; Tue, 21 Aug 2007 02:34:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INNK9-0007cg-8a for help-gnu-emacs@gnu.org; Tue, 21 Aug 2007 02:34:45 -0400 Original-Received: from sitemail.everyone.net ([216.200.145.35] helo=omta09.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INNK8-000851-Px for help-gnu-emacs@gnu.org; Tue, 21 Aug 2007 02:34:45 -0400 Original-Received: from pop16.mta.everyone.net (bigiplb-dsnat [172.16.0.19]) by omta09.mta.everyone.net (Postfix) with ESMTP id 9CA26411E4; Mon, 20 Aug 2007 23:34:43 -0700 (PDT) X-Eon-Dm: pop16 Original-Received: by pop16.mta.everyone.net (EON-AUTHRELAY2 - 48f102f2) id pop16.46c7e1ed.86b97; Mon, 20 Aug 2007 23:34:43 -0700 X-Eon-Sig: AQLTeK1GyoeDTLt5VQIAAAAC,037fbab75b0bc1d8e7290933138f8a57 Original-Received: by potis.org (nbSMTP-1.00) for uid 1000 poti@potis.org; Tue, 21 Aug 2007 02:33:31 -0400 (EDT) Content-Disposition: inline In-Reply-To: <1186203495.748845.86630@m37g2000prh.googlegroups.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46711 Archived-At: On 21:58 Fri 03 Aug , Hosley wrote: > On Aug 3, 11:14 pm, Marc Schwartz wrote: > > Hosley writes: > > > I need to setup up R, ESS, and GNU Emacs for a class but am having > > > problems. I'm trying to open R in Emacs by following these steps: > > > > > 1. Open Emacs > > > 2.Ctrl-x 2, to open 2 buffers > > > 3. Selecting top buffer and clicking Alt-x > > > 4. Typing 'R' then hitting 'enter' twice > > > > > This is supposed to open R in the top buffer but instead I get a error > > > saying no such file or directory. It appears to be look into c:/devl/ > > > emacs/bin as the default. Yet if I type in the correct path (c:/ > > > program files/R/R-2.5.0/bin) manually I get the same error. > > > > > Bu the way, I can open R by itself (standalone) and it works fine. > > > > > I know this is about as novice as it gets, but I'm not used to these > > > environments. Any suggestions would be great! > > > > > Thanks, > > > Hos > > > > You might want to review this from the ESS Manual: > > > > http://ess.r-project.org/Manual/ess.html#Microsoft-Windows-installation > > > > Also, there is a dedicated ESS mailing list. More info here: > > > > https://stat.ethz.ch/mailman/listinfo/ess-help > > > > Finally, note that the current version of R is 2.5.1. You should get > > the latest version from your local CRAN mirror. > > > > HTH, > > > > Marc Schwartz > > Thanks for letting me know about 2.5.1. Unfortunately it still cannot > be found by Emacs. Is R in your path? If not, the following is edited down from what I do in my startup file (you can put it in _emacs), which can be extended to add other programs: (let* ((rpath (directory-file-name (mapconcat 'file-name-as-directory (list "C:" "Program Files" "R" "R-2.5.0" "bin") "")))) (setq tlpath (list rpath))) (setq exec-path (append tlpath exec-path)) (setenv "PATH" (concat (mapconcat (lambda (dir) (or dir ".")) tlpath path-separator) path-separator (getenv "PATH"))) > > Also, I will try to read the manuals again, but a lot of the advice > I've come across indirectly relates to my issue and involves (meaning > it may or may not fix the issue) making a lot of changes that alter > the step by step instructions I was following, which I'm afraid to do > at this point. Obviously these programs are extremely sensitive to > small installation errors/typos and I don't want to dig myself further > into a hole. Aside from adding R to my path, placing the ess directory in Emacs/site-lisp/ and adding (require 'ess) to _emacs works fine for me with no other alterations to my Emacs/ess/R installation. -Poti