Running examples in 'rtext-Ex.R' failed
The error most likely occurred in:

> ### Name: rtext
> ### Title: R6 class - linking text and data
> ### Aliases: rtext
> ### Keywords: data
> 
> ### ** Examples
> 
> 
> # initialize (with text or file)
> quote_text <-
+ "Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read."
> quote <- rtext$new(text = quote_text)
rtext : initializing
> 
> # add some data
> quote$char_data_set("first", 1, TRUE)
> quote$char_data_set("last", quote$char_length(), TRUE)
> 
> # get the data
> quote$char_data_get()
   i char first last
1  1    O  TRUE   NA
2 85    .    NA TRUE
> 
> # transform text
> quote$char_add("[this is an insertion] \n", 47)
> 
> # get the data again (see, the data moved along with the text)
> quote$text_get()
[1] "Outside of a dog, a book is man's best friend. [this is an insertion] \nInside of a dog it's too dark to read."
> quote$char_data_get()
    i char first last
1   1    O  TRUE   NA
2 109    .    NA TRUE
> 
> # do some convenience coding (via regular expressions)
> quote$char_data_set_regex("dog_friend", "dog", "dog")
> quote$char_data_set_regex("dog_friend", "friend", "friend")
> quote$char_data_get()
     i char first last dog_friend
1    1    O  TRUE   NA       <NA>
2   14    d    NA   NA        dog
3   15    o    NA   NA        dog
4   16    g    NA   NA        dog
5   40    f    NA   NA     friend
6   41    r    NA   NA     friend
7   42    i    NA   NA     friend
8   43    e    NA   NA     friend
9   44    n    NA   NA     friend
10  45    d    NA   NA     friend
11  84    d    NA   NA        dog
12  85    o    NA   NA        dog
13  86    g    NA   NA        dog
14 109    .    NA TRUE       <NA>
> 
> # aggregate data by regex pattern
> quote$tokenize_data_regex(split="(dog)|(friend)", non_token = TRUE, join = "full")
Error in aggregate.data.frame(chardata[, -c(1:2)], by = list(token_i = token_i),  : 
  arguments must have same length
Calls: <Anonymous> -> <Anonymous> -> <Anonymous> -> aggregate.data.frame
Execution halted