Skip to content

Errors with empty tokens objects #2110

@koheiw

Description

@koheiw
> list("a")[0]
list()

> as.tokens(list("a"))[0]
Tokens consisting of 0 document.
 :
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'print': subscript out of bounds

> as.tokens(list())
Tokens consisting of 0 document.
Error in qatd_cpp_tokens_recompile(x, type, gap, dup) : 
  Not compatible with STRSXP: [type=NULL].

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions