Prior to running R:

echo %HOMEDRIVE%
C:               # HOMEDRIVE variable set

echo %HOMEPATH%
%HOMEPATH%       # HOMEPATH variable not set

Rgui HOMEPATH=\  # starts R-1.9.0...works fine

After running R:

echo %HOMEPATH%
%HOMEPATH%       # HOMEPATH variable still not set

I've tried setting HOMEDRIVE to both C: and D:  Either works as long as I
pass a valid HOMEPATH to R, either using SET and starting R from the command
line, or by appending HOMEPATH to the Rgui command as specified in the
RW-FAQ.

I'm currently using the following in the "Target" field of the icon
properties dialog:

"D:\Documents and Settings\vinyardwc\R\bin\Rgui.exe"
HOMEPATH=\Docume~1\vinyardwc\Mydocu~1\Rwork\work

SET returns the following -- 

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

	[[alternative HTML version deleted]]


