Ramon Diaz-Uriarte
2010-Apr-07 17:01 UTC
[R] as.ffdf.data.frame now breaks if using pattern
Dear All, I am using package ff. In version 2.1-1 it was possible to use "pattern" with as.ffdf.data.frame: d <- data.frame(x=1:26, y=letters, z=Sys.time()+1:26) as.ffdf(d, pattern = paste(getwd(), "/fftmp", sep = "")) With the latest version, the last command crashes. I wonder if the new behavior is intentional or a bug. If intentional, what is the recommended way of using "pattern" now? Thanks, R. -- Ramon Diaz-Uriarte Structural Biology and Biocomputing Programme Spanish National Cancer Centre (CNIO) http://ligarto.org/rdiaz Phone: +34-91-732-8000 ext. 3019 Fax: +-34-91-224-6972
Jens Oehlschlägel
2010-Apr-07 18:34 UTC
[R] as.ffdf.data.frame now breaks if using pattern
Ramon, for me this works> setwd("d:/tmp") > ffd <- as.ffdf(d, col_args=list(pattern = paste(getwd(), "/fftmp", sep = ""))) > filename(ffd)$x [1] "d:/tmp/fftmp35c34861.ff" $y [1] "d:/tmp/fftmp5be946bb.ff" $z [1] "d:/tmp/fftmp26c49ce.ff" Jens -----Urspr?ngliche Nachricht----- Von: Ramon Diaz-Uriarte <rdiaz02 at gmail.com> Gesendet: Apr 7, 2010 7:01:23 PM An: r-help at r-project.org Betreff: as.ffdf.data.frame now breaks if using pattern>Dear All, > >I am using package ff. In version 2.1-1 it was possible to use >"pattern" with as.ffdf.data.frame: > >d <- data.frame(x=1:26, y=letters, z=Sys.time()+1:26) >as.ffdf(d, pattern = paste(getwd(), "/fftmp", sep = "")) > >With the latest version, the last command crashes. I wonder if the new >behavior is intentional or a bug. If intentional, what is the >recommended way of using "pattern" now? > >Thanks, > >R. > >-- >Ramon Diaz-Uriarte >Structural Biology and Biocomputing Programme >Spanish National Cancer Centre (CNIO) >http://ligarto.org/rdiaz >Phone: +34-91-732-8000 ext. 3019 >Fax: +-34-91-224-6972
Ramon Diaz-Uriarte
2010-Apr-08 13:18 UTC
[R] as.ffdf.data.frame now breaks if using pattern
Ah, I see. Thanks. It works for me too. Best, R. 2010/4/7 Jens Oehlschl?gel <jens.oehlschlaegel at truecluster.com>:> Ramon, > for me this works > >> setwd("d:/tmp") >> ffd <- as.ffdf(d, col_args=list(pattern = paste(getwd(), "/fftmp", sep = ""))) >> filename(ffd) > $x > [1] "d:/tmp/fftmp35c34861.ff" > > $y > [1] "d:/tmp/fftmp5be946bb.ff" > > $z > [1] "d:/tmp/fftmp26c49ce.ff" > > Jens > > > -----Urspr?ngliche Nachricht----- > Von: Ramon Diaz-Uriarte <rdiaz02 at gmail.com> > Gesendet: Apr 7, 2010 7:01:23 PM > An: r-help at r-project.org > Betreff: as.ffdf.data.frame now breaks if using pattern > >>Dear All, >> >>I am using package ff. In version 2.1-1 it was possible to use >>"pattern" with as.ffdf.data.frame: >> >>d <- data.frame(x=1:26, y=letters, z=Sys.time()+1:26) >>as.ffdf(d, pattern = paste(getwd(), "/fftmp", sep = "")) >> >>With the latest version, the last command crashes. I wonder if the new >>behavior is intentional or a bug. If intentional, what is the >>recommended way of using "pattern" now? >> >>Thanks, >> >>R. >> >>-- >>Ramon Diaz-Uriarte >>Structural Biology and Biocomputing Programme >>Spanish National Cancer Centre (CNIO) >>http://ligarto.org/rdiaz >>Phone: +34-91-732-8000 ext. 3019 >>Fax: +-34-91-224-6972 >-- Ramon Diaz-Uriarte Structural Biology and Biocomputing Programme Spanish National Cancer Centre (CNIO) http://ligarto.org/rdiaz Phone: +34-91-732-8000 ext. 3019 Fax: +-34-91-224-6972