Skip to content

Commit bb9668f

Browse files
committed
test R-devel
1 parent 0c63526 commit bb9668f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

R/altrep.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,24 @@ true_size <- function(x)
5656
is_compact <- function(x)
5757
{
5858
altrep <- R_altrep_full_class(x)
59+
if (is.null(altrep)) return(FALSE)
5960
cat(">>>>>>>\n")
6061
print(altrep)
6162
print(class(altrep))
6263
print(str(altrep))
6364
cat("<<<<<<<\n")
64-
if (is.null(altrep)) return(FALSE)
65-
if (altrep[[2]] == "rlas") {
65+
66+
if (getRversion() < "4.6.0")
67+
{
68+
altrep = altrep[[2]]
69+
}
70+
71+
if (altrep == "rlas")
72+
{
6673
if (R_is_materialized(x)) return(FALSE)
6774
return(TRUE)
6875
}
76+
6977
return(FALSE)
7078
}
7179

0 commit comments

Comments
 (0)