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

Fix tests on R-devel. #169

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Fix tests on R-devel. #169

merged 1 commit into from
Sep 2, 2024

Conversation

plietar
Copy link
Member

@plietar plietar commented Sep 2, 2024

As of yesterday, the development version of R preserves names in its implementation of setdiff (and other set-like operations). This has changed the behaviour of root_list_unknown_packets to also preserves names, which broke some tests that were a little too strict about it.

$ docker run -it rocker/r-ver:devel R -s -e 'dput(setdiff(c(a=1), NULL))'
c(a = 1)
$ docker run -it rocker/r-ver:4.4 R -s -e 'dput(setdiff(c(a=1), NULL))'
1

See r-devel/r-svn@982288a for the offending upstream change.

@plietar plietar requested a review from richfitz September 2, 2024 13:03
As of yesterday, the development version of R preserves names in its
implementation of `setdiff` (and other set-like operations). This has
changed the behaviour of `root_list_unknown_packets` to also preserves
names, which broke some tests that were a little too strict about it.

```
$ docker run -it rocker/r-ver:devel R -s -e 'dput(setdiff(c(a=1), NULL))'
c(a = 1)
$ docker run -it rocker/r-ver:4.4 R -s -e 'dput(setdiff(c(a=1), NULL))'
1
```

See r-devel/r-svn@982288a
for the offending upstream change.
@richfitz richfitz merged commit 8acc928 into main Sep 2, 2024
10 checks passed
@plietar plietar deleted the fix-tests-devel branch September 2, 2024 15:57
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.

2 participants