Skip to content

Commit

Permalink
can't use gc(full=TRUE) on ancient R (#6546)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Sep 28, 2024
1 parent 8d77127 commit 9acec7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -19226,7 +19226,8 @@ test(2286,
x<2, structure(list(1), class = "foo"),
x<3, structure(list(2), class = "foo"),
# Force gc() and some allocations which have a good chance at landing in the region that was earlier left unprotected
{ gc(full = TRUE); replicate(10, FALSE); x<4 },
# TODO(R>=3.5.0): no need to branch here for gc(full=TRUE)
{ if ("full" %in% names(formals(gc))) gc(full = TRUE) else gc(); replicate(10, FALSE); x<4 },
`attr<-`(list(3), "class", "foo")),
structure(list(1, 2, 3), class = "foo"))

Expand Down

0 comments on commit 9acec7d

Please sign in to comment.