All, I've encountered the same problem as others who have posted under the same subject. I've had R-1.8.1 installed and running since it was released. Yesterday morning when I tried to start Rgui.exe I got the subject error message. Since I live at the whim of the network administrators I can only assume it was a recent MS critical update. I tried installing R-1.9.0 but no joy. I created ".Renviron" with HOMEDRIVE and HOMEPATH values set appropriately (see bat file below) but this did not solve the problem either. The following did work: Create batch file MyRBat.bat ---start--- SET HOMEDRIVE=D: # for some reason "echo %HOMEDRIVE%" returns "C:" even when I set the install path to D:\{HOME}\ SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work Rgui.exe ---end--- Cheers [[alternative HTML version deleted]]
Vinyard Maj William C <VinyardWC at logcom.usmc.mil> writes:> All, > > I've encountered the same problem as others who have posted under the same > subject. > > I've had R-1.8.1 installed and running since it was released. Yesterday > morning when I tried to start Rgui.exe I got the subject error message. > Since I live at the whim of the network administrators I can only assume it > was a recent MS critical update. > > I tried installing R-1.9.0 but no joy. > > I created ".Renviron" with HOMEDRIVE and HOMEPATH values set appropriately > (see bat file below) but this did not solve the problem either. > > The following did work: > > Create batch file MyRBat.bat > > ---start--- > SET HOMEDRIVE=D: # for some reason "echo %HOMEDRIVE%" returns "C:" even > when I set the install path to D:\{HOME}\I don't think that is anomalous in itself. Install paths and home directories are distinct concepts. But could you perhaps prepend something like SET > c:/TEMP/envir.txt (I'm very rusty on Windows, but I think that should work) and tell us what the variables are set to?> SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > > Rgui.exe > ---end---Btw, there's a user-friendlier way of setting environment variables on XP isn't there? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
As requested: set > eviron.txt ALLUSERSPROFILE=D:\Documents and Settings\All Users APPDATA=D:\Documents and Settings\vinyardwc\Application Data CMP_HOME=C:\PROGRA~1\DIICOE~1 CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=MATCOM08WK072 ComSpec=C:\WINNT\system32\cmd.exe HOMEDRIVE=C: HOMESHARE=\\matcomapps05\users LOGONSERVER=\\MATCOMDC03 NUMBER_OF_PROCESSORS=1 OS=Windows_NT Os2LibPath=C:\WINNT\system32\os2\dll; Path=d:\docume~1\vinyardwc\gnuwin32\bin;d:\docume~1\vinyardwc\gnu\bin; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PBXHOME=C:\PBrokerX PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 3, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0103 ProgramFiles=C:\Program Files PROMPT=$P$G RESOURCENAME=DIICOE SMS_LOCAL_DIR=C:\WINNT SMS_LOCAL_DIR_USER=C:\WINNT SystemDrive=C: SystemRoot=C:\WINNT TEMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp TMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp UCP_HOME=..\data\UCP USERDOMAIN=MATCOM USERNAME=VinyardWC USERPROFILE=D:\Documents and Settings\vinyardwc windir=C:\WINNT WORKDIRECTORY=C:\Program Files\DII COE Message Processor\bin I use a DELL desktop with Win 2000 Pro. I have R-1.9.0 installed. A co-worker has R-1.8.1 installed on a Dell laptop also with Win 2000 Pro. He has not experienced any problems. Our network admin push updates over the net at night. I assume the netadmin pushes the same updates to both machines. I changed my batch file from: SET HOMEDRIVE=D: SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work Rgui.exe to: @SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work @ Start Rgui.exe The second version works. [[alternative HTML version deleted]]
I can also start 1.8.1 and 1.9.0 properly in a similar way to that described here by Vinyard, by typing the following at the command prompt or from a batch file. SET HOMEPATH=\ "C:\Program Files\R\rw1090\bin\Rgui.exe" However, both 1.8.1 and 1.9.0 still fail in the usual way when started from the program icon (I have confirmed, by SET, before and after failing that HOMEPATH is properly set). I observe the same behaviour when HOME=C:\ is set. Brett ----- Original Message ----- From: "Vinyard Maj William C" <VinyardWC at logcom.usmc.mil> To: <r-help at stat.math.ethz.ch> Sent: Friday, April 23, 2004 4:54 AM Subject: [R] Fatal Error: INVALID HOMEDRIVE> As requested: > > set > eviron.txt > > ALLUSERSPROFILE=D:\Documents and Settings\All Users > APPDATA=D:\Documents and Settings\vinyardwc\Application Data > CMP_HOME=C:\PROGRA~1\DIICOE~1 > CommonProgramFiles=C:\Program Files\Common Files > COMPUTERNAME=MATCOM08WK072 > ComSpec=C:\WINNT\system32\cmd.exe > HOMEDRIVE=C: > HOMESHARE=\\matcomapps05\users > LOGONSERVER=\\MATCOMDC03 > NUMBER_OF_PROCESSORS=1 > OS=Windows_NT > Os2LibPath=C:\WINNT\system32\os2\dll; > Path=d:\docume~1\vinyardwc\gnuwin32\bin;d:\docume~1\vinyardwc\gnu\bin; > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > PBXHOME=C:\PBrokerX > PROCESSOR_ARCHITECTURE=x86 > PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 3, GenuineIntel > PROCESSOR_LEVEL=15 > PROCESSOR_REVISION=0103 > ProgramFiles=C:\Program Files > PROMPT=$P$G > RESOURCENAME=DIICOE > SMS_LOCAL_DIR=C:\WINNT > SMS_LOCAL_DIR_USER=C:\WINNT > SystemDrive=C: > SystemRoot=C:\WINNT > TEMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > TMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > UCP_HOME=..\data\UCP > USERDOMAIN=MATCOM > USERNAME=VinyardWC > USERPROFILE=D:\Documents and Settings\vinyardwc > windir=C:\WINNT > WORKDIRECTORY=C:\Program Files\DII COE Message Processor\bin > > I use a DELL desktop with Win 2000 Pro. I have R-1.9.0 installed. A > co-worker has R-1.8.1 installed on a Dell laptop also with Win 2000 Pro.He> has not experienced any problems. Our network admin push updates over the > net at night. I assume the netadmin pushes the same updates to both > machines. > > I changed my batch file from: > > SET HOMEDRIVE=D: > SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > Rgui.exe > > to: > > @SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > @ Start Rgui.exe > > The second version works. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html
have you tried changing the "Target" line in the properties dialog for the icon to this: "C:\Program Files\R\rw1090\bin\Rgui.exe" HOMEPATH=\path\to\normal\R\workdir -----Original Message----- From: Brett Melbourne [mailto:bamelbourne@ucdavis.edu] Sent: Friday, April 23, 2004 13:13 To: Vinyard Maj William C; r-help@stat.math.ethz.ch Subject: Re: [R] Fatal Error: INVALID HOMEDRIVE I can also start 1.8.1 and 1.9.0 properly in a similar way to that described here by Vinyard, by typing the following at the command prompt or from a batch file. SET HOMEPATH=\ "C:\Program Files\R\rw1090\bin\Rgui.exe" However, both 1.8.1 and 1.9.0 still fail in the usual way when started from the program icon (I have confirmed, by SET, before and after failing that HOMEPATH is properly set). I observe the same behaviour when HOME=C:\ is set. Brett ----- Original Message ----- From: "Vinyard Maj William C" <VinyardWC@logcom.usmc.mil> To: <r-help@stat.math.ethz.ch> Sent: Friday, April 23, 2004 4:54 AM Subject: [R] Fatal Error: INVALID HOMEDRIVE> As requested: > > set > eviron.txt > > ALLUSERSPROFILE=D:\Documents and Settings\All Users > APPDATA=D:\Documents and Settings\vinyardwc\Application Data > CMP_HOME=C:\PROGRA~1\DIICOE~1 > CommonProgramFiles=C:\Program Files\Common Files > COMPUTERNAME=MATCOM08WK072 > ComSpec=C:\WINNT\system32\cmd.exe > HOMEDRIVE=C: > HOMESHARE=\\matcomapps05\users > LOGONSERVER=\\MATCOMDC03 > NUMBER_OF_PROCESSORS=1 > OS=Windows_NT > Os2LibPath=C:\WINNT\system32\os2\dll; > Path=d:\docume~1\vinyardwc\gnuwin32\bin;d:\docume~1\vinyardwc\gnu\bin; > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > PBXHOME=C:\PBrokerX > PROCESSOR_ARCHITECTURE=x86 > PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 3, GenuineIntel > PROCESSOR_LEVEL=15 > PROCESSOR_REVISION=0103 > ProgramFiles=C:\Program Files > PROMPT=$P$G > RESOURCENAME=DIICOE > SMS_LOCAL_DIR=C:\WINNT > SMS_LOCAL_DIR_USER=C:\WINNT > SystemDrive=C: > SystemRoot=C:\WINNT > TEMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > TMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > UCP_HOME=..\data\UCP > USERDOMAIN=MATCOM > USERNAME=VinyardWC > USERPROFILE=D:\Documents and Settings\vinyardwc > windir=C:\WINNT > WORKDIRECTORY=C:\Program Files\DII COE Message Processor\bin > > I use a DELL desktop with Win 2000 Pro. I have R-1.9.0 installed. A > co-worker has R-1.8.1 installed on a Dell laptop also with Win 2000 Pro.He> has not experienced any problems. Our network admin push updates over the > net at night. I assume the netadmin pushes the same updates to both > machines. > > I changed my batch file from: > > SET HOMEDRIVE=D: > SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > Rgui.exe > > to: > > @SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > @ Start Rgui.exe > > The second version works. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html [[alternative HTML version deleted]]
> have you tried changing the "Target" line in the properties dialog for the > icon to this: > > "C:\Program Files\R\rw1090\bin\Rgui.exe"HOMEPATH=\path\to\normal\R\workdir This works for me too, in the the "Target" line in the properties dialog for the icon: "C:\Program Files\R\rw1090\bin\Rgui.exe" HOMEPATH=\ Brett> > > -----Original Message----- > From: Brett Melbourne [mailto:bamelbourne at ucdavis.edu] > Sent: Friday, April 23, 2004 13:13 > To: Vinyard Maj William C; r-help at stat.math.ethz.ch > Subject: Re: [R] Fatal Error: INVALID HOMEDRIVE > > > I can also start 1.8.1 and 1.9.0 properly in a similar way to thatdescribed> here by Vinyard, by typing the following at the command prompt or from a > batch file. > > SET HOMEPATH=\ > "C:\Program Files\R\rw1090\bin\Rgui.exe" > > However, both 1.8.1 and 1.9.0 still fail in the usual way when startedfrom> the program icon (I have confirmed, by SET, before and after failing that > HOMEPATH is properly set). I observe the same behaviour when HOME=C:\ is > set. > > Brett > > > > ----- Original Message ----- > From: "Vinyard Maj William C" <VinyardWC at logcom.usmc.mil> > To: <r-help at stat.math.ethz.ch> > Sent: Friday, April 23, 2004 4:54 AM > Subject: [R] Fatal Error: INVALID HOMEDRIVE > > > > As requested: > > > > set > eviron.txt > > > > ALLUSERSPROFILE=D:\Documents and Settings\All Users > > APPDATA=D:\Documents and Settings\vinyardwc\Application Data > > CMP_HOME=C:\PROGRA~1\DIICOE~1 > > CommonProgramFiles=C:\Program Files\Common Files > > COMPUTERNAME=MATCOM08WK072 > > ComSpec=C:\WINNT\system32\cmd.exe > > HOMEDRIVE=C: > > HOMESHARE=\\matcomapps05\users > > LOGONSERVER=\\MATCOMDC03 > > NUMBER_OF_PROCESSORS=1 > > OS=Windows_NT > > Os2LibPath=C:\WINNT\system32\os2\dll; > > Path=d:\docume~1\vinyardwc\gnuwin32\bin;d:\docume~1\vinyardwc\gnu\bin; > > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > > PBXHOME=C:\PBrokerX > > PROCESSOR_ARCHITECTURE=x86 > > PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 3, GenuineIntel > > PROCESSOR_LEVEL=15 > > PROCESSOR_REVISION=0103 > > ProgramFiles=C:\Program Files > > PROMPT=$P$G > > RESOURCENAME=DIICOE > > SMS_LOCAL_DIR=C:\WINNT > > SMS_LOCAL_DIR_USER=C:\WINNT > > SystemDrive=C: > > SystemRoot=C:\WINNT > > TEMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > > TMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > > UCP_HOME=..\data\UCP > > USERDOMAIN=MATCOM > > USERNAME=VinyardWC > > USERPROFILE=D:\Documents and Settings\vinyardwc > > windir=C:\WINNT > > WORKDIRECTORY=C:\Program Files\DII COE Message Processor\bin > > > > I use a DELL desktop with Win 2000 Pro. I have R-1.9.0 installed. A > > co-worker has R-1.8.1 installed on a Dell laptop also with Win 2000 Pro. > He > > has not experienced any problems. Our network admin push updates overthe> > net at night. I assume the netadmin pushes the same updates to both > > machines. > > > > I changed my batch file from: > > > > SET HOMEDRIVE=D: > > SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > > Rgui.exe > > > > to: > > > > @SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > > @ Start Rgui.exe > > > > The second version works. > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
Brett Melbourne wrote:> > I can also start 1.8.1 and 1.9.0 properly in a similar way to that described > here by Vinyard, by typing the following at the command prompt or from a > batch file. > > SET HOMEPATH=\ > "C:\Program Files\R\rw1090\bin\Rgui.exe" > > However, both 1.8.1 and 1.9.0 still fail in the usual way when started from > the program iconWell, using "set" in the shell only sets the variable in this current instance of the shell. It does not set the variable for all instances. And you are running in another instance when clicking on an icon ... You might want to set an appropriate HOMEPATH in your Control Panel (I think in System). Uwe Ligges> (I have confirmed, by SET, before and after failing that > HOMEPATH is properly set). I observe the same behaviour when HOME=C:\ is > set. > > Brett > > ----- Original Message ----- > From: "Vinyard Maj William C" <VinyardWC at logcom.usmc.mil> > To: <r-help at stat.math.ethz.ch> > Sent: Friday, April 23, 2004 4:54 AM > Subject: [R] Fatal Error: INVALID HOMEDRIVE > > > As requested: > > > > set > eviron.txt > > > > ALLUSERSPROFILE=D:\Documents and Settings\All Users > > APPDATA=D:\Documents and Settings\vinyardwc\Application Data > > CMP_HOME=C:\PROGRA~1\DIICOE~1 > > CommonProgramFiles=C:\Program Files\Common Files > > COMPUTERNAME=MATCOM08WK072 > > ComSpec=C:\WINNT\system32\cmd.exe > > HOMEDRIVE=C: > > HOMESHARE=\\matcomapps05\users > > LOGONSERVER=\\MATCOMDC03 > > NUMBER_OF_PROCESSORS=1 > > OS=Windows_NT > > Os2LibPath=C:\WINNT\system32\os2\dll; > > Path=d:\docume~1\vinyardwc\gnuwin32\bin;d:\docume~1\vinyardwc\gnu\bin; > > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > > PBXHOME=C:\PBrokerX > > PROCESSOR_ARCHITECTURE=x86 > > PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 3, GenuineIntel > > PROCESSOR_LEVEL=15 > > PROCESSOR_REVISION=0103 > > ProgramFiles=C:\Program Files > > PROMPT=$P$G > > RESOURCENAME=DIICOE > > SMS_LOCAL_DIR=C:\WINNT > > SMS_LOCAL_DIR_USER=C:\WINNT > > SystemDrive=C: > > SystemRoot=C:\WINNT > > TEMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > > TMP=D:\DOCUME~1\VINYAR~1\LOCALS~1\Temp > > UCP_HOME=..\data\UCP > > USERDOMAIN=MATCOM > > USERNAME=VinyardWC > > USERPROFILE=D:\Documents and Settings\vinyardwc > > windir=C:\WINNT > > WORKDIRECTORY=C:\Program Files\DII COE Message Processor\bin > > > > I use a DELL desktop with Win 2000 Pro. I have R-1.9.0 installed. A > > co-worker has R-1.8.1 installed on a Dell laptop also with Win 2000 Pro. > He > > has not experienced any problems. Our network admin push updates over the > > net at night. I assume the netadmin pushes the same updates to both > > machines. > > > > I changed my batch file from: > > > > SET HOMEDRIVE=D: > > SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > > Rgui.exe > > > > to: > > > > @SET HOMEPATH=\Documents and Settings\vinyardwc\My Documents\Rwork\work > > @ Start Rgui.exe > > > > The second version works. > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html