From: John Fox [mailto:jfox at mcmaster.ca]
Dear Andy,
At 02:29 PM 2/11/2004 -0500, Liaw, Andy wrote:
Thanks to Uwe and Duncan Murdoch (who replied off-list).
as Uwe said: no existing R level functionality.
I guess it might be possible to do something similar with
With the tcltk package loaded, it's as simple as
tclvalue(tkchooseDirectory()), which returns the directory name as a
character string.
I hope that this helps,
John
From: Uwe Ligges
Liaw, Andy wrote:
Dear R-help,
Can anyone tell me if it's possible to call up the
one you get when you click on "File" -> "Change Dir...") in
command line? Seems like file.choose() can't be used to
choose a directory.
Looks like there is no R function to do so.
The C level code is in
./src/gnuwin32/rui.c
and
./src/gnuwin32/graphapp/dialogs.c
and friends.
Uwe Ligges
This is in R-1.8.1 on WinXPPro.
Any help much appreciated!
Andy
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------