[R] RGui problem in Windows XP with demo() and help()

From: Murray Eisenberg <murray_at_math.umass.edu>
Date: Mon 04 Sep 2006 - 00:10:33 GMT

I just installed R-2.3.1pat under Windows XP as well as the associated RWinEdt. If I start RGui from its shortcut (but do _not_ also start RWinEdt) and then try to execute demo() or help(), I get a RWinEdt pop-up error window with message:

   File "D:\WP\WinEdtData\WinEdt\D:/WP/WinEdtData/WinEdt/R.ini" does not exist!

   Qualifier -e/-E does not specify an existing file!

First question: what is causing RWinEdt even to get involved here?

Second: where is the garbled path to R.ini coming from.

Here's the configuration: Everything R is in D:\Stats\R. R-2.3.1pat has the actual R release installed.

The shortcut for R-2.3.1-pat has target
D:\Stats\R\R-2.3.1pat\bin\Rgui.exe and starts in D:\Stats\R\R-2.3.1pat.

File .Renviron is in D:\Stats\R. R-2.3.1pat; the only lines in it that are not commented out are:


File .Rprofile is in e:/Documents/R (the reference of myR_USER); the only lines in it not commented out are:

   options(editor="\"d:/WP/winedt/winedt\" -c=\"R-WinEdt\"

-E=\"D:/WP/WinEdtData/WinEdt/R.ini\" -V") [on 1 line]
   options(pager="\"d:/WP/winedt/winedt\" -C=\"R-WinEdt\"

-e=\"D:/WP/WinEdtData/WinEdt/R.ini\" -V") [on 1 line]
   .First <- function(x) print("Profile read")

Is the root of the problem that I have a single .Rprofile set up for RWinEdt but need to have a different one for RGui without RWinEdt? And, if so, how do I tell R which one to use at startup?

Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Sep 04 10:18:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 07 Sep 2006 - 07:51:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.