Skip to content

Allow locking or protecting a data.table from any modifications #1086

@ClaytonJY

Description

@ClaytonJY

This issue arose from Stack Overflow here: https://stackoverflow.com/questions/29085334/lock-or-protect-a-data-table-in-r

I 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:

  1. make modify-by-reference functions respect the lockBinding() function
  2. 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

Either solution would work for me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions