Debian Codegraph @

inst/testme/test-r_bug18119.R

raw
1 library(parallelly)
2
3 r_version_has_bug18119 <- function() {
4 parallelly:::r_version_has_bug18119(force = TRUE)
5 }
6
7 affected_by_bug18119 <- function() {
8 parallelly:::affected_by_bug18119(force = TRUE)
9 }
10
11
12 message("*** R bug #18119 ...")
13
14 has <- r_version_has_bug18119()
15 message("r_version_has_bug18119(<current>): ", has)
16
17 Sys.setenv(R_PARALLELLY_R_VERSION="3.5.3")
18 has <- r_version_has_bug18119()
19 message("r_version_has_bug18119(<R 3.5.3>): ", has)
20 stopifnot(!has)
21
22 Sys.setenv(R_PARALLELLY_R_VERSION="4.0.0")
23 has <- r_version_has_bug18119()
24 message("r_version_has_bug18119(<R 4.0.0>): ", has)
25 stopifnot(has)
26
27 Sys.setenv(R_PARALLELLY_R_VERSION="4.0.5")
28 has <- r_version_has_bug18119()
29 message("r_version_has_bug18119(<R 4.0.5>): ", has)
30 stopifnot(has)
31
32 Sys.setenv(R_PARALLELLY_R_VERSION="4.1.0")
33 has <- r_version_has_bug18119()
34 message("r_version_has_bug18119(<R 4.1.0>): ", has)
35 stopifnot(has)
36
37 Sys.setenv(R_PARALLELLY_R_VERSION="4.1.1")
38 has <- r_version_has_bug18119()
39 message("r_version_has_bug18119(<R 4.1.1>): ", has)
40 stopifnot(!has)
41
42 Sys.setenv(R_PARALLELLY_R_VERSION="4.2.0")
43 has <- r_version_has_bug18119()
44 message("r_version_has_bug18119(<R 4.2.0>): ", has)
45 stopifnot(!has)
46
47 message("*** R bug #18119 ... DONE")