[R] ffsave problems

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Oct 3 20:05:18 CEST 2012



On 02.10.2012 21:55, Lucas Chaparro wrote:
> Dear R friends.
> After having some troubles learning how to create a ffdf object, now I find
> myself having problems saving it.
>
> this is the data i´d like to save:
> str(DATA)
> List of 3
>   $ virtual: 'data.frame': 6 obs. of  7 variables:
>   .. $ VirtualVmode     : chr  "double" "short" "integer" "integer" ...
>   .. $ AsIs             : logi  FALSE FALSE FALSE FALSE FALSE FALSE
>   .. $ VirtualIsMatrix  : logi  FALSE FALSE FALSE FALSE FALSE FALSE
>   .. $ PhysicalIsMatrix : logi  FALSE FALSE FALSE FALSE FALSE FALSE
>   .. $ PhysicalElementNo: int  1 2 3 4 5 6
>   .. $ PhysicalFirstCol : int  1 1 1 1 1 1
>   .. $ PhysicalLastCol  : int  1 1 1 1 1 1
>   .. - attr(*, "Dim")= int  65640757 6
>   .. - attr(*, "Dimorder")= int  1 2
>   $ physical: List of 6
>   .. $ fecha    : list()
>   ..  ..- attr(*, "physical")=Class 'ff_pointer' <externalptr>
>   ..  .. ..- attr(*, "vmode")= chr "double"
>   ..  .. ..- attr(*, "maxlength")= int 65640757
>   ..  .. ..- attr(*, "pattern")= chr "clone"
>   ..  .. ..- attr(*, "filename")= chr
> "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/clone10d86b45b04.ff"
>   ..  .. ..- attr(*, "pagesize")= int 65536
>   ..  .. ..- attr(*, "finalizer")= chr "delete"
>   ..  .. ..- attr(*, "finonexit")= logi TRUE
>   ..  .. ..- attr(*, "readonly")= logi FALSE
>   ..  .. ..- attr(*, "caching")= chr "mmnoflush"
>   ..  ..- attr(*, "virtual")= list()
>   ..  .. ..- attr(*, "Length")= int 65640757
>   ..  .. ..- attr(*, "Symmetric")= logi FALSE
>   ..  .. ..- attr(*, "ramclass")= chr "Date"
>   ..  .. ..- attr(*, "class")= chr "virtual"
>   .. .. - attr(*, "class") =  chr [1:2] "ff_vector" "ff"
>   .. $ juliano  : list()
>   ..  ..- attr(*, "physical")=Class 'ff_pointer' <externalptr>
>   ..  .. ..- attr(*, "vmode")= chr "short"
>   ..  .. ..- attr(*, "maxlength")= int 65640757
>   ..  .. ..- attr(*, "pattern")= chr "ff"
>   ..  .. ..- attr(*, "filename")= chr
> "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/ff10d829d36fc8.ff"
>   ..  .. ..- attr(*, "pagesize")= int 65536
>   ..  .. ..- attr(*, "finalizer")= chr "delete"
>   ..  .. ..- attr(*, "finonexit")= logi TRUE
>   ..  .. ..- attr(*, "readonly")= logi FALSE
>   ..  .. ..- attr(*, "caching")= chr "mmnoflush"
>   ..  ..- attr(*, "virtual")= list()
>   ..  .. ..- attr(*, "Length")= int 65640757
>   ..  .. ..- attr(*, "Symmetric")= logi FALSE
>   ..  .. ..- attr(*, "class")= chr "virtual"
>   .. .. - attr(*, "class") =  chr [1:2] "ff_vector" "ff"
>   .. $ altura   : list()
>   ..  ..- attr(*, "physical")=Class 'ff_pointer' <externalptr>
>   ..  .. ..- attr(*, "vmode")= chr "integer"
>   ..  .. ..- attr(*, "maxlength")= int 65640757
>   ..  .. ..- attr(*, "pattern")= chr "ff"
>   ..  .. ..- attr(*, "filename")= chr
> "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/ff10d8dcd2eca.ff"
>   ..  .. ..- attr(*, "pagesize")= int 65536
>   ..  .. ..- attr(*, "finalizer")= chr "delete"
>   ..  .. ..- attr(*, "finonexit")= logi TRUE
>   ..  .. ..- attr(*, "readonly")= logi FALSE
>   ..  .. ..- attr(*, "caching")= chr "mmnoflush"
>   ..  ..- attr(*, "virtual")= list()
>   ..  .. ..- attr(*, "Length")= int 65640757
>   ..  .. ..- attr(*, "Symmetric")= logi FALSE
>   ..  .. ..- attr(*, "class")= chr "virtual"
>   .. .. - attr(*, "class") =  chr [1:2] "ff_vector" "ff"
>   .. $ UTM.E    : list()
>   ..  ..- attr(*, "physical")=Class 'ff_pointer' <externalptr>
>   ..  .. ..- attr(*, "vmode")= chr "integer"
>   ..  .. ..- attr(*, "maxlength")= int 65640757
>   ..  .. ..- attr(*, "pattern")= chr "ff"
>   ..  .. ..- attr(*, "filename")= chr
> "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/ff10d833f74cfa.ff"
>   ..  .. ..- attr(*, "pagesize")= int 65536
>   ..  .. ..- attr(*, "finalizer")= chr "delete"
>   ..  .. ..- attr(*, "finonexit")= logi TRUE
>   ..  .. ..- attr(*, "readonly")= logi FALSE
>   ..  .. ..- attr(*, "caching")= chr "mmnoflush"
>   ..  ..- attr(*, "virtual")= list()
>   ..  .. ..- attr(*, "Length")= int 65640757
>   ..  .. ..- attr(*, "Symmetric")= logi FALSE
>   ..  .. ..- attr(*, "class")= chr "virtual"
>   .. .. - attr(*, "class") =  chr [1:2] "ff_vector" "ff"
>   .. $ UTM.N    : list()
>   ..  ..- attr(*, "physical")=Class 'ff_pointer' <externalptr>
>   ..  .. ..- attr(*, "vmode")= chr "integer"
>   ..  .. ..- attr(*, "maxlength")= int 65640757
>   ..  .. ..- attr(*, "pattern")= chr "ff"
>   ..  .. ..- attr(*, "filename")= chr
> "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/ff10d85124f1a.ff"
>   ..  .. ..- attr(*, "pagesize")= int 65536
>   ..  .. ..- attr(*, "finalizer")= chr "delete"
>   ..  .. ..- attr(*, "finonexit")= logi TRUE
>   ..  .. ..- attr(*, "readonly")= logi FALSE
>   ..  .. ..- attr(*, "caching")= chr "mmnoflush"
>   ..  ..- attr(*, "virtual")= list()
>   ..  .. ..- attr(*, "Length")= int 65640757
>   ..  .. ..- attr(*, "Symmetric")= logi FALSE
>   ..  .. ..- attr(*, "class")= chr "virtual"
>   .. .. - attr(*, "class") =  chr [1:2] "ff_vector" "ff"
>   .. $ fire_ocur: list()
>   ..  ..- attr(*, "physical")=Class 'ff_pointer' <externalptr>
>   ..  .. ..- attr(*, "vmode")= chr "byte"
>   ..  .. ..- attr(*, "maxlength")= int 65640757
>   ..  .. ..- attr(*, "pattern")= chr "ff"
>   ..  .. ..- attr(*, "filename")= chr
> "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/ff10d824ef517f.ff"
>   ..  .. ..- attr(*, "pagesize")= int 65536
>   ..  .. ..- attr(*, "finalizer")= chr "delete"
>   ..  .. ..- attr(*, "finonexit")= logi TRUE
>   ..  .. ..- attr(*, "readonly")= logi FALSE
>   ..  .. ..- attr(*, "caching")= chr "mmnoflush"
>   ..  ..- attr(*, "virtual")= list()
>   ..  .. ..- attr(*, "Length")= int 65640757
>   ..  .. ..- attr(*, "Symmetric")= logi FALSE
>   ..  .. ..- attr(*, "class")= chr "virtual"
>   .. .. - attr(*, "class") =  chr [1:2] "ff_vector" "ff"
>   $ row.names:  NULL
> - attributes: List of 2
>   .. $ names: chr [1:3] "virtual" "physical" "row.names"
>   .. $ class: chr "ffdf"
>
> the function I used to do this was:
>
> *ffsave(DATA, file='//N7700PRO/Datos/Datos_Servidor_Lucas/DATA')*
>
> this gives me the next error:
>
> *Error in system(cmd, input = filelist, intern = TRUE) : 'zip' not found*
>
> I found that I needed to have some kind of Zip and UnZip tool, this comes
> in Rtools, so I installed the Rtools *Rtools215* because I have installed
> the R.2.15.1 version.

So this is WIndows?

> After installing the tools I keep getting the same problem, do I have to
> re-configure something in R? or the tools are suposed to work alone after
> installing?

The path to their "bin" directory has to be added to your PATH 
environment variable.

Uwe Ligges


> If any can help me with this, I´d really appreciate it.
>
>
> Lucas.
>
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list