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
Fix this and add a test.