-
Notifications
You must be signed in to change notification settings - Fork 139
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
shallow copy don't work as expected #1666
Comments
I'm not sure what you're expecting here. But please note that |
Thank you for the clarification. I understand that |
|
It's not that it's powerful, it's that it's extremely low level, and you shouldn't expect any high level semantics from it. Also it's mostly meant for prototyping C code from R and should generally not be used in user or package code.
Yes since it's a shallow copy the attributes list is not duplicated, which means that if you modify the names in place later on you'll get side effects. It's all working as expected from the perspective of these very low level tools. |
I have followed this thread to use shallow copy Rdatatable/data.table#3214 (comment)
Created on 2023-11-06 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: