Skip to content
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

Sort names of R6 objects correctly #85

Merged
merged 3 commits into from
Jul 5, 2021
Merged

Sort names of R6 objects correctly #85

merged 3 commits into from
Jul 5, 2021

Conversation

krlmlr
Copy link
Member

@krlmlr krlmlr commented Jul 4, 2021

Closes #84.

R/compare.R Outdated
x_fields$.__enclos_env__ <- NULL
y_fields$.__enclos_env__ <- NULL
# Can't use as.list(sorted = TRUE), https://github.com/r-lib/waldo/issues/84
x_fields <- x_fields[sort(names(x_fields))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

order() feels like it would be marginally more correct to me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

@hadley hadley merged commit f7217b9 into master Jul 5, 2021
@hadley hadley deleted the b-84-r6 branch July 5, 2021 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloned R6 objects are detected as different
2 participants