{"action":"opened","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1086","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1086/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1086/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1086/events","html_url":"https://github.com/Rdatatable/data.table/issues/1086","id":62736542,"number":1086,"title":"[Request] Allow locking or protecting a data.table from any modifications","user":{"login":"ClaytonJY","id":5169330,"avatar_url":"https://avatars.githubusercontent.com/u/5169330?v=3","gravatar_id":"","url":"https://api.github.com/users/ClaytonJY","html_url":"https://github.com/ClaytonJY","followers_url":"https://api.github.com/users/ClaytonJY/followers","following_url":"https://api.github.com/users/ClaytonJY/following{/other_user}","gists_url":"https://api.github.com/users/ClaytonJY/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaytonJY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaytonJY/subscriptions","organizations_url":"https://api.github.com/users/ClaytonJY/orgs","repos_url":"https://api.github.com/users/ClaytonJY/repos","events_url":"https://api.github.com/users/ClaytonJY/events{/privacy}","received_events_url":"https://api.github.com/users/ClaytonJY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T16:35:14Z","updated_at":"2015-03-18T16:35:14Z","closed_at":null,"body":"This issue arose from Stack Overflow here: https://stackoverflow.com/questions/29085334/lock-or-protect-a-data-table-in-r\r\n\r\nI would like to be able to make a data.table unmodifiable. In the comments below my question, two changes to the data.table package are proposed by other users:\r\n1) make modify-by-reference functions respect the `lockBinding()` function\r\n2) make modify-by-reference functions respect a \"read.only\" attribute. Jan Gorecki has already implemented this for `[.data.table` here: https://github.com/jangorecki/data.table/tree/read.only\r\n\r\nEither solution would work for me."}}