[R] Saving with tkgetSaveFile
Thomas W Blackwell
tblackw at umich.edu
Fri Sep 19 17:00:00 CEST 2003
Ruben -
Why not simply save(x, file="new.file.name") ?
See help("save"), help("files"). The file name must be
quoted, and it must be passed as a named argument to save().
- tom blackwell - u michigan medical school - ann arbor -
On Fri, 19 Sep 2003 solares at unsl.edu.ar wrote:
> HI, i'm trying to save a data frame with the next script:
> x<-c(1,2,3)#suposse here the data frame
> a<-tkgetSaveFile()
> a<-tkgetSaveFile()
> save(x,file=as.character(a))
>
> but i obtain the next warning message:
> Warning messages:
> 1: the condition has length > 1 and only the first element will be used in:
> if (file == "") stop("`file' must be non-empty string")
> 2: only first element of `description' argument used
>
> and nothing file is saved, ¿What is the error? Thanks Ruben
More information about the R-help
mailing list