Skip to content
Prev 392210 / 398502 Next

Does the function "c" have a character limit?

To be clear, Everything has limits beyond which it is not expected to have to deal with. Buffers often pick a fixed size and often need complex code to keep grabbing a bigger size and copy and add more, or arrange various methods to link multiple memory areas into a growing whole, such as having an object with a list of smaller parts that are concatenated only when requested.

Many languages likely have similar constraints and one method hackers have used is to arrange to overflow such buffers carefully.

Have you verified if the normal stand-alone R interpreter accepts a longer one-liner and the cause may in RSTUDIO or whatever else you are using?

I will say the current design is flawed in that it does NOT give you an error, but since only some of the line is passed to the functionality then it is waiting for something that closes up the command such as a close parenthesis, or if it stops in middle of a string, also a close quote.

So, as we have said, just don't do that, albeit it is not necessarily easy to avoid when you have no idea the length of your data will be so high.


-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of core_contingency
Sent: Wednesday, July 13, 2022 11:50 AM
To: r-help at r-project.org
Subject: Re: [R] Does the function "c" have a character limit?

Thank you everyone for the help. It is interesting that R sets a character limit on each line, but I am glad the solution is simple.

core_contingency
On 7/13/22 07:42, Rui Barradas wrote: