PC Review


Reply
Thread Tools Rate Thread

difficulty setting environment variable to its parent

 
 
BG
Guest
Posts: n/a
 
      29th Sep 2008
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
 
Reply With Quote
 
 
 
 
Jim
Guest
Posts: n/a
 
      29th Sep 2008

"BG" <(E-Mail Removed)> wrote in message
news:8278473F-BCCA-440F-9BDC-(E-Mail Removed)...
> 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


 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      29th Sep 2008

"BG" <(E-Mail Removed)> wrote in message
news:8278473F-BCCA-440F-9BDC-(E-Mail Removed)...
> 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?


 
Reply With Quote
 
BG
Guest
Posts: n/a
 
      29th Sep 2008


"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
 
Reply With Quote
 
BG
Guest
Posts: n/a
 
      29th Sep 2008


"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


 
Reply With Quote
 
M.I.5¾
Guest
Posts: n/a
 
      30th Sep 2008

"Jim" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "BG" <(E-Mail Removed)> wrote in message
> news:8278473F-BCCA-440F-9BDC-(E-Mail Removed)...
>> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a environment variable in citrix viv7 Microsoft Windows 2000 4 12th May 2006 07:56 AM
Setting an environment variable beaker Microsoft VB .NET 1 19th Oct 2005 04:45 PM
Setting an Assembly Attribute with an Environment Variable rosenfeld1@walla.co.il Microsoft Dot NET Framework 2 25th May 2005 06:42 AM
Setting an Environment Variable Paul Bergson Microsoft Windows 2000 Group Policy 0 15th Dec 2004 02:06 PM
setting an environment variable via the output of a command Timothy Stone Windows XP Basics 1 13th Jan 2004 01:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 AM.