-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems using filemode = "rb" #2
Comments
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? |
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
The text was updated successfully, but these errors were encountered: