The account that I use on my machine is a member of the Administrators
group.  I typically don't install applications using "Run as Administrator".
 I did check c:/Users/yourname/AppData/Local/VirtualStore/Program Files/ and
didn't find R in that folder.  Should I still uninstall R and reinstall as
administrator?

On Wed, May 11, 2011 at 1:21 AM, Richard M. Heiberger <rmh@temple.edu>wrote:

> Please stay on the list.  I am responding to the list with your last
> message and my next suggestion.
>
> Windows 7 is very particular about file permissions.  My guess is you
> installed R as yourself
> and not as administrator.  Therefore, Windows 7 is confused about where R
> really is and
> is looking at the real location where R should be, and not where Windows
> itself placed R.
>
> Verify this by looking inside
> c:/Users/yourname/AppData/Local/VirtualStore/Program Files/
> and see if R is there.
>
> If so, then uninstall it as yourself, and reinstall it as administrator.
> In windows explorer, right-click the R-2.13.0-win.exe and then click "Run
> as Administrator".
>
> Please send your results and followup queries to the list.
>
> Rich
>
> On Wed, May 11, 2011 at 1:06 AM, Jayanth Rajan <jayanthrajan@gmail.com>wrote:
>
>> Hi Richard,
>>
>> I spoke too soon.  When I reinstalled R, I accidentally changed the
>> compatibility mode to Vista Service Pack 2 instead of Windows XP Service
>> Pack 3.  The former doesn't cause an issue with emacs however it still
>> crashes Windows 7 when running my statistics package.  However, when I
>> choose the Windows XP Service Pack 3 compatibility option, and run as you
>> instructed (emacs -Q), emacs starts up.
>>
>>    1. I next typed M-: (require 'ess-site)
>>    2. Emacs tells me that it is searching for all versions of Rterm
>>    3. I get a dialog box asking me "Do you want to allow the following
>>    program from an unknown publisher to make changes to this computer?" and
>>    identifies the program as Rterm.exe
>>    4. I respond with yes
>>    5. I am able to verify that the *ESS* buffer exists
>>    6. Starting M-x R, results in a status message "Searching for program:
>>    no such file or directory, Rterm"
>>    7. Switching to *R* buffer shows it flagged as no process
>>    8. If I start emacs normally, however, M-x R hangs emacs.  Doing C-g
>>    and switching to *R* shows the process in run mode but it doesn't seem to do
>>    anything useful when I type R commands in the buffer.
>>
>> Thanks,
>> Jayanth
>>
>>
>>
>>
>> On Wed, May 11, 2011 at 12:39 AM, Jayanth Rajan <jayanthrajan@gmail.com>wrote:
>>
>>> Hi Richard,
>>>
>>> I am not sure what caused the hang previously but uninstalling and
>>> reinstalling R plus removing the setq for inferior-R-program-name seems to
>>> have fixed the issue.  I am now able to run R in compatibility mode.
>>>
>>> Thanks,
>>> Jayanth
>>>
>>>
>>> On Tue, May 10, 2011 at 11:47 PM, Richard M. Heiberger <rmh@temple.edu>wrote:
>>>
>>>> Jayanth,
>>>>
>>>> This is very strange.
>>>>
>>>> You should not need the line about inferior-R-program name.
>>>> Since you installed R in the standard location, ESS will find R
>>>> automatically when emacs is
>>>> started.
>>>>
>>>> Please run with
>>>>    emacs -Q
>>>> to turn off all your local and personal customizations.
>>>> Then enter the line
>>>> M-: (require 'ess-site) <RET>
>>>>
>>>> Let the list know what happens.
>>>>
>>>> The normal way to respond to emacs freezing is C-g.
>>>>
>>>> Rich
>>>>
>>>>
>>>>
>>>>
>>>>  On Tue, May 10, 2011 at 10:44 PM, Jayanth Rajan <
>>>> jayanthrajan@gmail.com> wrote:
>>>>
>>>>> I am running GNU Emacs 22.2.1 on a Windows 7 laptop.
>>>>>
>>>>>   1. I downloaded the latest ESS package to c:/emacs/site-lisp/ess-5.13
>>>>>   2. I added the following lines to .emacs
>>>>>      1. (require 'ess-site)
>>>>>      2. (setq inferior-R-program-name
>>>>>
>>>>>      "c:/progra~1/R/R-2.13.0/bin/i386/Rterm.exe")
>>>>>   3. I verified that I have a buffer named *ESS*
>>>>>   4. When I type M-x R, emacs prompts me for the starting directory and
>>>>>
>>>>>
>>>>>   then* emacs freezes*
>>>>>
>>>>> I have Rterm.exe configured to run in Windows XP (Service Pack 3)
>>>>> compatibility mode since R will crash Windows every now and then when
>>>>> running a statistical package.  If I disable the compatibility mode,
>>>>> M-x R
>>>>> successfully starts a R inferior process.  Running Rterm.exe as
>>>>> administrator did not help nor did picking compatibility mode for all
>>>>> users.
>>>>>
>>>>> Is there a workaround to run R within emacs when Rterm.exe is run in
>>>>> compatibility mode?
>>>>>
>>>>>        [[alternative HTML version deleted]]
>>>>>
>>>>> ______________________________________________
>>>>> ESS-help@r-project.org mailing list
>>>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>>>>
>>>>
>>>>
>>>
>>
>

	[[alternative HTML version deleted]]

