[R] Setting working directory interactively within a function

Gabor Grothendieck ggrothendieck at gmail.com
Fri Oct 14 20:02:29 CEST 2005


library(tcltk)
setwd(tclvalue(tkchooseDirectory()))

On 10/14/05, Paul Baer <pbaer at berkeley.edu> wrote:
> Is there anyway to have a function prompt the user for a working
> directory, equivalent to file.choose()?




More information about the R-help mailing list