Brian, thanks for the hint, it works.

The old 1.8 version works very well without the need of such
"manual" loading, I guess, there'd be some internal changes
in the order of libraries loading at the startup
in the 1.9.0 version ?

--
Fan

[EMAIL PROTECTED] wrote:
I had this problem too. The documentation for the winMenus says that these
functions are part of the utils package. R must be loading this library
after it sources in Rprofile. If you add library(utils) to the beginning of
your .First function, it should take care of the problem.

Brian Gregor, P.E.
Transportation Planning Analysis Unit
Oregon Department of Transportation
[EMAIL PROTECTED]
(503) 986-4120



-----Original Message-----
From: Fan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 3:06 PM
To: Duncan Murdoch
Cc: [EMAIL PROTECTED]
Subject: [R] Error with 1.9.0 - winMenuAdd not usable in .Rprofile


With the R 1.9.0 version (Windows patched binary), I've got a strange behaviour: the function winMenuAdd is no longer usable in the start up file .Rprofile, the following error message was given:

Error in try(winMenuAdd("test")) : couldn't find function "winMenuAdd"

but the function works fine in interactive, once R loaded.

Any idea ?
Thanks
--
Fan

Duncan Murdoch wrote:

On Wed, 21 Apr 2004 18:40:05 +0100 (BST), Prof Brian Ripley
<[EMAIL PROTECTED]> wrote :



On Wed, 21 Apr 2004, Duncan Murdoch wrote:



I think it would be more useful for debugging purposes to

do them one

at a time. Do we still get an error message about

HOMEDRIVE if we do

the above? What if we set only HOMEPATH?

Unfortunately you get the same message unless both are set

correctly, so

setting just one on the command line will tell you nothing.

I've changed

the message for R-patched so we can tell them apart.


I've just uploaded builds of r-patched and r-devel to CRAN that
incorporate this change. They should be visible tomorrow at


<http://cran.r-project.org/bin/windows/base>

Follow the links near the top of the page; the ones in the main part
are for the unpatched 1.9.0 release.

Duncan Murdoch

______________________________________________
[EMAIL PROTECTED] 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


______________________________________________
[EMAIL PROTECTED] 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




______________________________________________
[EMAIL PROTECTED] 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


______________________________________________ [EMAIL PROTECTED] 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

Reply via email to