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

From: Berton Gunter <gunter.berton_at_gene.com>
Date: Sat 15 Oct 2005 - 03:08:31 EST


?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.

"The business of the statistician is to catalyze the scientific learning process." - George E. P. Box    

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Paul Baer
> Sent: Friday, October 14, 2005 9:56 AM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Setting working directory interactively within a function
>
> 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.org/posting-guide.html
>



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.org/posting-guide.html Received on Sat Oct 15 03:14:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:45 EST