From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hosley Newsgroups: gmane.emacs.help Subject: Re: Can't open R in Emacs Date: Sat, 04 Aug 2007 16:54:22 -0700 Organization: http://groups.google.com Message-ID: <1186271662.441195.209340@g4g2000hsf.googlegroups.com> References: <1186163463.463509.313420@d55g2000hsg.googlegroups.com> <1186180218.598538.157180@q75g2000hsh.googlegroups.com> <1186262116.917703.121080@j4g2000prf.googlegroups.com> <1186263225.628427.122000@e9g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1186274506 6692 80.91.229.12 (5 Aug 2007 00:41:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2007 00:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 05 02:41:44 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 1IHUBi-0001f2-Jy for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 02:41:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHUBg-0006za-NN for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Aug 2007 20:41:40 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g4g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 87 Original-NNTP-Posting-Host: 68.100.60.48 Original-X-Trace: posting.google.com 1186271662 26942 127.0.0.1 (4 Aug 2007 23:54:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 4 Aug 2007 23:54:22 +0000 (UTC) In-Reply-To: <1186263225.628427.122000@e9g2000prf.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g4g2000hsf.googlegroups.com; posting-host=68.100.60.48; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:150751 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:46324 Archived-At: On Aug 4, 5:33 pm, the matt wrote: > On Aug 4, 3:15 pm, Hosley wrote: > > > > > On Aug 4, 10:43 am, Marc Schwartz wrote: > > > > Peter Dyballa writes: > > > > Am 04.08.2007 um 00:30 schrieb Hosley: > > > > >> I can open R by clicking on my desktop "R 2.5.0" icon, or by opening > > > >> from "C:\Program Files\R\R-2.5.0\bin\Rgui.exe" > > > > > You certainly won't be running R's GUI in GNU Emacs, you'll need to > > > > find the "simple" command line oriented utility, R.exe or such. The > > > > Swedish URL you provided mentions C:\tools\bin\ to contain R. > > > > No. The 'tools' directory is for other purposes, such as compiling R from source > > > and/or creating add-on packages. > > > > In this case, the terminal based executable on Windows, as per the link I > > > provided is called 'Rterm.exe'. > > > > Note also that the full path to the application, which on Windows has a space > > > in it, needs to use the '~1' contraction. So for R 2.5.1 it should be something > > > like: > > > > (setq inferior-R-program-name "C:/progra~1/R/R-2.5.1/bin/Rterm.exe") > > > > if you are going to use that approach in .emacs. Again, that is described in the > > > aforementioned ESS manual. > > > > HTH, > > > > Marc > > > I want to alter the default in emacs, so I guess I want to create/ > > modify an initialization file (.emacs) with the command you've > > provided above. I read the ESS manual and other stuff online, but I'm > > still clueless! Where am I supposed to find or put this .emacs file? > > Do I just create one in C:\devel\emacs\lisp by creating a text file, > > typing in (setq inferior-R-program-name "C:/progra~1/R/R-2.5.1/bin/ > > Rterm.exe"), saving, then changing the format to .emacs? I know > > literally nothing about command line programming, and much of this > > manual is beyond my understanding. > > > Thanks again, > > Hos > > I really have to wonder if running R inside of Emacs is a good idea > for you. It seems that you would be better off running R as a > standalone. > > I don't know much about Windows init files, but I suspect that a > quick internet search for "Windows Emacs startup files" would give > enough information to me so that I would'nt have to ask a newsgroup to > do my homework for me. There is also the GNU emacs manual that is > pretty good at identifying the locations of all the startup scripts. > > .emacs files are customized in Emacs-Lisp (a LISP dialect), and I > suspect that once you do figure out how to find this file, you will be > further overwhelmed with getting it customized. > > I suggest that you stick with learning R (it is rather extensive in > its own right) > > As to answer your question, if it (.emacs) isn't created, you will > need to create it and put into the directory of your "HOME" env > variable. If you don't have one defined, it will look in C:\ > > Just my thoughts. > > Matt I appreciate your advice. Unfortunately I have to follow the instructions provided for the crash course (5 days 8 hours a day) I'm required to take in R. I initially tried reading the manuals, but I was getting overwhelmed with all of the scenarios that did not relate to my issue. I was hoping there was an easy answer I was missing, and I didn't mean for it to get to a point where others were doing my homework for me (though I greatly appreciate all of the help and have learned a lot in from what people have suggested). I'll read through the manual again tomorrow, and if I find an answer, I'll post my own step by step directions just in case it might help others. Hos