[R] save object interactively

Duncan Murdoch dmurdoch at pair.com
Fri Sep 12 19:09:57 CEST 2003


On Fri, 12 Sep 2003 11:43:43 -0300 (ART), <solares at unsl.edu.ar> wrote 
>> f<-file.choose()
>> save(nbre,file=f)
>
>But I should create the file before electing it, there is not form of 
>opening a window of I talk and to keep with a name that I can put in that 
>window?  Does not something exist as 
>file.choose.save?  . Thanks Ruben

The argument to the save function can be the result of a calculation,
so you could have

 save(nbre, file=file.choose())

Duncan Murdoch




More information about the R-help mailing list