inst/testme/test-all.equal.connection.R

## This test asserts that two R connections are identified as different,
## although they share the same connection index. This helps to work
## around a bug in R [1]
## [1] https://github.com/HenrikBengtsson/Wishlist-for-R/issues/81

message("all.equal() for connection ...")
con1 <- rawConnection(raw())
close(con1)

con2 <- rawConnection(raw())
close(con2)

stopifnot(!isTRUE(all.equal(con1, con2)))
message("all.equal() for connection ... done")

Try the parallelly package in your browser

Any scripts or data that you put into this service are public.

parallelly documentation built on June 8, 2025, 10:47 a.m.