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
Long strings work in R, but not R Studio #4768
Comments
|
@jhuntergit Thanks for reporting this! I was able to reproduce this on MacOS 10.14, as well, on both RStudio Desktop 1.1.463 and 1.2.1335. We'll check it out as we work on future development of RStudio. Also, confirmed that it's not the number of records by using the same number of records but with single-character strings: |
|
On my system (RStudio Desktop 1.2.1511 x64, Windows 10), this is reproducible with any expression of 4095 or more characters. |
|
To expand on calpans comment: I have a function definition which spans 150 lines. If I place the cursor in the first line where the word "function" is and then ctrl + enter, this bug happens. And yes, I know I should break the function into smaller units, but that's hard to do in my specific case. RStudio desktop 1.2.1335 |
|
This is as documented: in R, the maximum length of any line that can be submitted to the console is 4095 bytes. https://cran.r-project.org/doc/manuals/R-intro.html#R-commands_003b-case-sensitivity-etc |
I can paste the following string into R 3.5.3 (the vanilla version in my Start menu) and I get the expected output. If I paste the same thing into my R Studio console the console drops to a
+expecting more. I've entered)thinking I may have copy/pasted wrong but it keeps dropping me to+, no matter what I enter.The text was updated successfully, but these errors were encountered: