Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with empty tokens objects #2110

Closed
koheiw opened this issue Apr 24, 2021 · 0 comments
Closed

Errors with empty tokens objects #2110

koheiw opened this issue Apr 24, 2021 · 0 comments
Assignees
Labels

Comments

@koheiw
Copy link
Collaborator

koheiw commented Apr 24, 2021

> 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].
@koheiw koheiw added the bug label Apr 24, 2021
@koheiw koheiw changed the title Errors with mpty tokens objects Errors with empty tokens objects Apr 25, 2021
@koheiw koheiw self-assigned this Apr 25, 2021
@koheiw koheiw mentioned this issue Apr 26, 2021
@koheiw koheiw closed this as completed Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant