Running examples in ‘rindex-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: index
> ### Title: Indexing vectors
> ### Aliases: index c.index indexAddTree indexDelTree indexAutobatch rindex
> ###   c.rindex rindexAddTree rindexDelTree rindexAutobatch
> ### Keywords: misc database
> 
> ### ** Examples
> 
>   #library(rindex)
>   x <- sample(c(rep("c", 5), paste("d", 1:5, sep=""), c(letters[c(1,2,5,6)], NA)))
> 
>   cat("\n")

>   cat("creating an index from atomic vector\n")
creating an index from atomic vector
>   i <- index(x)
>   i
$val
 [1] "a"  "b"  "c"  "c"  "c"  "c"  "c"  "d1" "d2" "d3" "d4" "d5" "e"  "f"  NA  

$pos
 [1]  4 13  1  5  9 10 11  2 15  3  6  7 12  8 14

$n
[1] 15

$nNA
[1] 1

$batch
[1] 14

$uni
[1] FALSE

$tree
<pointer: 0x55fdceb26b00>

attr(,"class")
[1] "index"
>   cat("creating an index by combining indices\n")
creating an index by combining indices
>   i2 <- c(i,i)
>   i2
$val
 [1] "a"  "b"  "c"  "c"  "c"  "c"  "c"  "d1" "d2" "d3" "d4" "d5" "e"  "f"  NA  

$pos
 [1]  4 13  1  5  9 10 11  2 15  3  6  7 12  8 14

$n
[1] 15

$nNA
[1] 1

$batch
[1] 14

$uni
[1] FALSE

$tree
<pointer: 0x55fdceb26b00>

$val
 [1] "a"  "b"  "c"  "c"  "c"  "c"  "c"  "d1" "d2" "d3" "d4" "d5" "e"  "f"  NA  

$pos
 [1]  4 13  1  5  9 10 11  2 15  3  6  7 12  8 14

$n
[1] 15

$nNA
[1] 1

$batch
[1] 14

$uni
[1] FALSE

$tree
<pointer: 0x55fdceb26b00>

>   cat("if the index (or index$tree) is removed, the C-tree is removed at the next garbage collection\n")
if the index (or index$tree) is removed, the C-tree is removed at the next garbage collection
>   cat("the index tree can also removed and created explicitely\n")
the index tree can also removed and created explicitely
>   i <- indexDelTree(i)
finalized tree
>   i
$val
 [1] "a"  "b"  "c"  "c"  "c"  "c"  "c"  "d1" "d2" "d3" "d4" "d5" "e"  "f"  NA  

$pos
 [1]  4 13  1  5  9 10 11  2 15  3  6  7 12  8 14

$n
[1] 15

$nNA
[1] 1

$batch
[1] 14

$uni
[1] FALSE

$tree
<pointer: (nil)>

attr(,"class")
[1] "index"
>   i <- indexAddTree(i, batch=3)
>   print(i, tree=TRUE)
$val
 [1] "a"  "b"  "c"  "c"  "c"  "c"  "c"  "d1" "d2" "d3" "d4" "d5" "e"  "f"  NA  

$pos
 [1]  4 13  1  5  9 10 11  2 15  3  6  7 12  8 14

$n
[1] 15

$nNA
[1] 1

$batch
[1] 3

$uni
[1] FALSE

$tree
<pointer: 0x55fdceb26b00>

attr(,"class")
[1] "index"
>   indexNodes(i)
[1] 9
>   indexBytes(i)
 val  pos tree 
 736  112  184 
> 
>   cat("\n")

>   cat("extracting the original vector\n")
extracting the original vector
>   i[]
$val
 [1] "a"  "b"  "c"  "c"  "c"  "c"  "c"  "d1" "d2" "d3" "d4" "d5" "e"  "f"  NA  

$pos
 [1]  4 13  1  5  9 10 11  2 15  3  6  7 12  8 14

$n
[1] 15

$nNA
[1] 1

$batch
[1] 3

$uni
[1] FALSE

$tree
<pointer: 0x55fdceb26b00>

>   cat("subsetting works as expected\n")
subsetting works as expected
>   i[1:3]
$val
 [1] "a"  "b"  "c"  "c"  "c"  "c"  "c"  "d1" "d2" "d3" "d4" "d5" "e"  "f"  NA  

$pos
 [1]  4 13  1  5  9 10 11  2 15  3  6  7 12  8 14

$n
[1] 15

>   cat("accessing the sorted data is much faster\n")
accessing the sorted data is much faster
>   sort(i)[1:3]
Error in rank(x, ties.method = "min", na.last = "keep") : 
  unimplemented type 'list' in 'greater'
Calls: sort ... as.vector -> xtfrm -> xtfrm.default -> as.vector -> rank
Execution halted