We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To support the full 2^31-1 (*) bytes per string, the stri_encode would need to be rewritten using batch uconv processing.
stri_encode
(*) R Internals:
Elements of character vectors (CHARSXPs) remain limited to 2^31 - 1 bytes.
> library(stringi); x<-stri_dup("a", 2**30); y <- paste(c(x, x), collapse="") #Error in paste(c(x, x), collapse = "") : result would exceed 2^31-1 bytes
The text was updated successfully, but these errors were encountered:
Some code to play with:
Rscript -e ' x <- charToRaw(stringi::stri_dup("a", 2**30)) print(length(x)) print(length(x)/1024/1024) y <- stringi::stri_encode(x, NULL, "utf-8") stopifnot(identical(rawToChar(x), y)) '
Sorry, something went wrong.
No branches or pull requests
To support the full 2^31-1 (*) bytes per string, the
stri_encode
would need to be rewritten using batch uconv processing.(*) R Internals:
The text was updated successfully, but these errors were encountered: