Closed PeteHaitch closed 7 years ago
Hi Pete,
Using "rb" makes it read-only, so it expects that the matrix already exists in a file on disk. As a result, when it tries to create and assign initial values, it cannot write to the file (since it's opened as read-only).
Hanging is bad, so this should probably either throw an error if no existing file is given, or it should temporarily open the file as read/write for the initialization.
-Kylie
Oh, that makes sense! I thought "rb" was to create a read-only file rather than to read from a read-only file. What is the recommended way to create a file but then make it read-only for subsequent use? Thanks, Pete
Create it using filemode="rb+" (default) then do:
filemode(x) <- "rb"
-Kylie
Hi Kylie,
I've just started exploring matter, it looks really cool! I hit an issue trying to specify
filemode = "rb"
when creating a matter matrix. Am I doing something wrong?Thanks