Max length of a string value

What is the max length of a string value? I have figured out, that Rstudio ends with error (SyntaxError: unterminated string literal (detected at line 1)) if the length is too long. If I shorten the length to the position indicated in the error, everything works perfectly.

4,096 bytes for cut-and-paste.

1 Like

So if I need a longer value, I have to import it from the file?

the console has limits, that sourcing from a script doesnt. i.e. you can import it from an independent file (like a .txt), or you can import it as a copy pasted string within your .R source code file if you source that R file (rather than send that code to console to be run)

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.