mrc-ide / orderly2

https://mrc-ide.github.io/orderly2/
Other
7 stars 2 forks source link

Fix tests on R-devel. #169

Closed plietar closed 1 month ago

plietar commented 1 month ago

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 https://github.com/r-devel/r-svn/commit/982288a5640ba584ff0d7e6ba85bf566a4184686 for the offending upstream change.