{"action":"created","issue":{"url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/17","repository_url":"https://api.github.com/repos/kaneplusplus/bigmemory","labels_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/17/comments","events_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/17/events","html_url":"https://github.com/kaneplusplus/bigmemory/issues/17","id":95479991,"number":17,"title":"Binary backing file not consistent","user":{"login":"kindlychung","id":995761,"avatar_url":"https://avatars2.githubusercontent.com/u/995761?v=3","gravatar_id":"","url":"https://api.github.com/users/kindlychung","html_url":"https://github.com/kindlychung","followers_url":"https://api.github.com/users/kindlychung/followers","following_url":"https://api.github.com/users/kindlychung/following{/other_user}","gists_url":"https://api.github.com/users/kindlychung/gists{/gist_id}","starred_url":"https://api.github.com/users/kindlychung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kindlychung/subscriptions","organizations_url":"https://api.github.com/users/kindlychung/orgs","repos_url":"https://api.github.com/users/kindlychung/repos","events_url":"https://api.github.com/users/kindlychung/events{/privacy}","received_events_url":"https://api.github.com/users/kindlychung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-07-16T17:02:41Z","updated_at":"2017-07-10T15:13:28Z","closed_at":"2015-11-10T16:29:27Z","body":"Here is the code:\n\n```\n# test big.matrix\nx = matrix(4, 2, 2)\ny = as.big.matrix(backingfile = \"test.bin\", descriptorfile=\"test.desc\", backingpath = \"/tmp\", binarydescriptor=TRUE, x = x)\ny[, ]\n```\n\nOn Ubuntu 15.04:\n\n```\nkaiyin@tron 18:58:11 | /tmp =>\n        xxd -b test.bin\n0000000: 00000000 00000000 00000000 00000000 00000000 00000000  ......\n0000006: 00010000 01000000 00000000 00000000 00000000 00000000  .@....\n000000c: 00000000 00000000 00010000 01000000 00000000 00000000  ...@..\n0000012: 00000000 00000000 00000000 00000000 00010000 01000000  .....@\n0000018: 00000000 00000000 00000000 00000000 00000000 00000000  ......\n000001e: 00010000 01000000\n```\n\nOn Mac OS 10.10:\n\n```\nkaiyin@kaiyins-mbp 18:59:48 | /tmp =>\n        xxd -b test.bin\n0000000: 00000000 00000000 00000000 00000000 00000000 00000000  ......\n0000006: 00010000 01000000 00000000 00000000 00000000 00000000  .@....\n000000c: 00000000 00000000 00010000 01000000 00000000 00000000  ...@..\n0000012: 00000000 00000000 00000000 00000000 00010000 01000000  .....@\n0000018: 00000000 00000000 00000000 00000000 00000000 00000000  ......\n000001e: 00010000 01000000 00000000\n```\n\nAs you can see, there is an extra null byte on mac. \n"},"comment":{"url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/comments/314137015","html_url":"https://github.com/kaneplusplus/bigmemory/issues/17#issuecomment-314137015","issue_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/17","id":314137015,"user":{"login":"mcol","id":6078177,"avatar_url":"https://avatars3.githubusercontent.com/u/6078177?v=3","gravatar_id":"","url":"https://api.github.com/users/mcol","html_url":"https://github.com/mcol","followers_url":"https://api.github.com/users/mcol/followers","following_url":"https://api.github.com/users/mcol/following{/other_user}","gists_url":"https://api.github.com/users/mcol/gists{/gist_id}","starred_url":"https://api.github.com/users/mcol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcol/subscriptions","organizations_url":"https://api.github.com/users/mcol/orgs","repos_url":"https://api.github.com/users/mcol/repos","events_url":"https://api.github.com/users/mcol/events{/privacy}","received_events_url":"https://api.github.com/users/mcol/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T15:13:28Z","updated_at":"2017-07-10T15:13:28Z","body":"Is this possibly due to this?\r\nhttps://github.com/kaneplusplus/bigmemory/blob/master/src/BigMatrix.cpp#L846"}}
{"actor":{"display_login":"mcol"}}