Re: [R] Setting working directory interactively within a function

2005-10-14 Thread Gabor Grothendieck
library(tcltk) setwd(tclvalue(tkchooseDirectory())) On 10/14/05, Paul Baer <[EMAIL PROTECTED]> wrote: > Is there anyway to have a function prompt the user for a working > directory, equivalent to file.choose()? __ R-help@stat.math.ethz.ch mailing list h

Re: [R] Setting working directory interactively within a function

2005-10-14 Thread Berton Gunter
> From: Paul Baer [mailto:[EMAIL PROTECTED] > Sent: Friday, October 14, 2005 10:48 AM > To: Berton Gunter > Subject: RE: [R] Setting working directory interactively > within a function > > Hi Berton -I did check the docs first and tried this soloution, but > unfortunately o

Re: [R] Setting working directory interactively within a function

2005-10-14 Thread Duncan Murdoch
On 10/14/2005 1:08 PM, Berton Gunter wrote: > ?setwd > e.g. setwd(file.choose()) > > BTW, you could have found this on your own via help.search('working > directory') . Base R has quite good docs -- you should try them first. > > -- Bert Gunter That won't work in Windows, where the dialogs don't

Re: [R] Setting working directory interactively within a function

2005-10-14 Thread Duncan Murdoch
On 10/14/2005 12:55 PM, Paul Baer wrote: > Is there anyway to have a function prompt the user for a working > directory, equivalent to file.choose()? It's relatively easy to get a text prompt, but I don't think we've got a function that's equivalent to the Windows menu item "File|Change dir..."

Re: [R] Setting working directory interactively within a function

2005-10-14 Thread Berton Gunter
is to catalyze the scientific learning process." - George E. P. Box > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paul Baer > Sent: Friday, October 14, 2005 9:56 AM > To: r-help@stat.math.ethz.ch > Subject: [R] Setting

[R] Setting working directory interactively within a function

2005-10-14 Thread Paul Baer
Is there anyway to have a function prompt the user for a working directory, equivalent to file.choose()? --Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project