kaneplusplus / bigmemory

126 stars 24 forks source link

Problem is SetElements #33

Closed kaneplusplus closed 8 years ago

kaneplusplus commented 8 years ago

Fix this and add a test.

N <- 1000
K <- 26
x <- big.matrix(N, K, type="char", backingfile="toy.bin", descriptorfile="toy.desc")
dim(x)
# [1] 1000   26
# # Some interesting points, here...
options(bigmemory.typecast.warning=FALSE)
options(bigmemory.allow.dimnames=TRUE)
# # The do some basic things with the natural R syntax:
x[1:2, 1:2] <- 1:4 # Simple assignment
# Error in SetElements.bm(x, i, j, value) : 
#   number of items to replace is not a multiple of replacement length
cdeterman commented 8 years ago

Hmm... I just synced my fork to your repo and tried that block of code without problem. Have you made any changes since posting this?

kaneplusplus commented 8 years ago

Yes, this has been fixed and the change is checked in.