Windows XP Community - XPHeads



Registry Mechanic - Free Scan Now

difficulty setting environment variable to its parent

microsoft.public.windowsxp.general


Reply
  #1 (permalink)  
Old 09-29-2008, 11:33 AM
BG
 
Posts: n/a
difficulty setting environment variable to its parent
Hello,

I am hoping someone can assist me with a problem I have trying to load
WordNet dictionary into a statistics program called R. Below is the error
message I receive:

> library(wordnet)
> initDict()

[1] FALSE
Warning message:
In initDict() :
cannot find WordNet 'dict' directory: please set the environment variable
WNHOME to its parent

Below is output from my computer when I type the following into a DOS
window. The actual file is in Program Files (note space) whereas below it is
reported as ProgramFiles - I don't know if this makes a difference.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.


C:\>echo %WNHOME%
C:\ProgramFiles\R\WordNet-3.0\

I have entered the Variable value via: control -> panel -> system -> system
properties -> advanced -> environment

Variable Name = WNHOME
variable value = C:\Program Files\R\WordNet-3.0\


Any assistance with this problem is much appreciated,


regards

Bob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-29-2008, 02:55 PM
Jim
 
Posts: n/a
Re: difficulty setting environment variable to its parent

"BG" <BG@discussions.microsoft.com> wrote in message
news:8278473F-BCCA-440F-9BDC-36B33103FB77@microsoft.com...
> Hello,
>
> I am hoping someone can assist me with a problem I have trying to load
> WordNet dictionary into a statistics program called R. Below is the error
> message I receive:
>
>> library(wordnet)
>> initDict()

> [1] FALSE
> Warning message:
> In initDict() :
> cannot find WordNet 'dict' directory: please set the environment variable
> WNHOME to its parent
>
> Below is output from my computer when I type the following into a DOS
> window. The actual file is in Program Files (note space) whereas below it
> is
> reported as ProgramFiles - I don't know if this makes a difference.
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
>
> C:\>echo %WNHOME%
> C:\ProgramFiles\R\WordNet-3.0\
>
> I have entered the Variable value via: control -> panel -> system ->
> system
> properties -> advanced -> environment
>
> Variable Name = WNHOME
> variable value = C:\Program Files\R\WordNet-3.0\
>
>
> Any assistance with this problem is much appreciated,
>
>
> regards
>
> Bob

Blanks are significant. As C:\ProgramFiles\ is not the same place as
C:\Program Files\.
Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-29-2008, 05:04 PM
Pegasus \(MVP\)
 
Posts: n/a
Re: difficulty setting environment variable to its parent

"BG" <BG@discussions.microsoft.com> wrote in message
news:8278473F-BCCA-440F-9BDC-36B33103FB77@microsoft.com...
> Hello,
>
> I am hoping someone can assist me with a problem I have trying to load
> WordNet dictionary into a statistics program called R. Below is the error
> message I receive:
>
>> library(wordnet)
>> initDict()

> [1] FALSE
> Warning message:
> In initDict() :
> cannot find WordNet 'dict' directory: please set the environment variable
> WNHOME to its parent
>
> Below is output from my computer when I type the following into a DOS
> window. The actual file is in Program Files (note space) whereas below it
> is
> reported as ProgramFiles - I don't know if this makes a difference.
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
>
> C:\>echo %WNHOME%
> C:\ProgramFiles\R\WordNet-3.0\
>
> I have entered the Variable value via: control -> panel -> system ->
> system
> properties -> advanced -> environment
>
> Variable Name = WNHOME
> variable value = C:\Program Files\R\WordNet-3.0\
>
>
> Any assistance with this problem is much appreciated,
>
>
> regards
>
> Bob


Are you saying that you set WNHome to a value of
"C:\Program Files\R\WordNet-3.0\"
and that it then becomes visible as
"C:\ProgramFiles\R\WordNet-3.0\"
in a Command Prompt window? If so, did you open this Command
Prompt before or after setting the variable?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-29-2008, 07:43 PM
BG
 
Posts: n/a
Re: difficulty setting environment variable to its parent


"Jim" wrote:

> > Bob

> Blanks are significant. As C:\ProgramFiles\ is not the same place as
> C:\Program Files\.
> Jim

Jim,

Thanks. After trialling various options the space is now there but the error
message remains so it must be something else.


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>echo %WNHOME%
C:\Program Files\R\WordNet3.0\


Any other suggestions?

Bob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-29-2008, 07:58 PM
BG
 
Posts: n/a
Re: difficulty setting environment variable to its parent


"Pegasus (MVP)" wrote:


> Are you saying that you set WNHome to a value of
> "C:\Program Files\R\WordNet-3.0\"
> and that it then becomes visible as
> "C:\ProgramFiles\R\WordNet-3.0\"
> in a Command Prompt window? If so, did you open this Command
> Prompt before or after setting the variable?


Thanks for your reply. I suspect that I previously left the Command Prompt
window open while I was trying various options. As I have tried so many
options, it is now a bit hard to recall the exact sequence, however, when I
just reopened a Command Prompt window, the space is clearly there.

I also tested if I had the file path wrong:

C:\>cd C:\Program Files\R\
C:\Program Files\R> cd C:\Program Files\R\WordNet3.0\
C:\Program Files\R\WordNet3.0> cd C:\Program Files\R\WordNet3.0\dict
C:\Program Files\R\WordNet3.0\dict>


Bob


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-30-2008, 07:55 AM
M.I.5¾
 
Posts: n/a
Re: difficulty setting environment variable to its parent

"Jim" <j.n@invalid.invalid> wrote in message
news:enrcfNkIJHA.1160@TK2MSFTNGP05.phx.gbl...
>
> "BG" <BG@discussions.microsoft.com> wrote in message
> news:8278473F-BCCA-440F-9BDC-36B33103FB77@microsoft.com...
>> Hello,
>>
>> I am hoping someone can assist me with a problem I have trying to load
>> WordNet dictionary into a statistics program called R. Below is the error
>> message I receive:
>>
>>> library(wordnet)
>>> initDict()

>> [1] FALSE
>> Warning message:
>> In initDict() :
>> cannot find WordNet 'dict' directory: please set the environment
>> variable
>> WNHOME to its parent
>>
>> Below is output from my computer when I type the following into a DOS
>> window. The actual file is in Program Files (note space) whereas below it
>> is
>> reported as ProgramFiles - I don't know if this makes a difference.
>>
>> Microsoft Windows XP [Version 5.1.2600]
>> (C) Copyright 1985-2001 Microsoft Corp.
>>
>>
>> C:\>echo %WNHOME%
>> C:\ProgramFiles\R\WordNet-3.0\
>>
>> I have entered the Variable value via: control -> panel -> system ->
>> system
>> properties -> advanced -> environment
>>
>> Variable Name = WNHOME
>> variable value = C:\Program Files\R\WordNet-3.0\
>>
>>
>> Any assistance with this problem is much appreciated,
>>
>>
>> regards
>>
>> Bob

> Blanks are significant. As C:\ProgramFiles\ is not the same place as
> C:\Program Files\.
> Jim


Indeed but not for why you think. If there are spaces in the line anywhere
then the variable must be enclosed in quotes. The parser stops at the first
space otherwise.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:25 AM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74