kaneplusplus / bigmemory

126 stars 24 forks source link

description(): user-defined file name #101

Closed nperezzanon closed 4 years ago

nperezzanon commented 4 years ago

Hi,

I would like to specify the file name for the shared object, and I have tried the following lines:

data_array <- bigmemory::big.matrix(nrow = prod(final_dims), ncol = 1)
    shared_matrix_pointer <- bigmemory::describe(data_array)
    if (!is.null(ObjectBigmemory)) {
      attr(shared_matrix_pointer, 'description')$sharedName <- ObjectBigmemory
    }

Although I can see that the attribute has correctly changed, the file has the original name. I guess that the file is already created by describe(), so, when I change the name is too late.

Do you know if there is a way to change this name?

Thanks in advance,

Núria

kaneplusplus commented 4 years ago

Please see the backingfile and descriptorfile options to the big.matrix() function.