# Get current semantics (defaults to "reference")
dt_copy_semantics()
# Switch to value semantics
old <- set_dt_copy_semantics("value")
dt_copy_semantics()
# Restore previous semantics
set_dt_copy_semantics(old)
Run the code above in your browser using DataLab