From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: the matt Newsgroups: gmane.emacs.help Subject: Re: Can't open R in Emacs Date: Sat, 04 Aug 2007 14:33:45 -0700 Organization: http://groups.google.com Message-ID: <1186263225.628427.122000@e9g2000prf.googlegroups.com> References: <1186163463.463509.313420@d55g2000hsg.googlegroups.com> <1186180218.598538.157180@q75g2000hsh.googlegroups.com> <1186262116.917703.121080@j4g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1186342857 32762 80.91.229.12 (5 Aug 2007 19:40:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2007 19:40:57 +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 21:40:54 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 1IHly7-0004vp-HY for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 21:40:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHly5-0000cZ-SJ for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 15:40:49 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e9g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 73 Original-NNTP-Posting-Host: 72.174.72.227 Original-X-Trace: posting.google.com 1186263226 4888 127.0.0.1 (4 Aug 2007 21:33:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 4 Aug 2007 21:33:46 +0000 (UTC) In-Reply-To: <1186262116.917703.121080@j4g2000prf.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e9g2000prf.googlegroups.com; posting-host=72.174.72.227; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:150748 X-Mailman-Approved-At: Sun, 05 Aug 2007 15:39:47 -0400 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:46335 Archived-At: 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