Skip to content
Prev 392195 / 398502 Next

Does the function "c" have a character limit?

Breaking up the *line* doesn't mean breaking up the *command*.
For example,
x <- c(
    "FOOBAR", # 1
    ...
    "FOOBAR", # 4999
    "UGGLE")
works fine, with source(..), with "R -f ...", and other ways.
Each *line* is short, but it's still one *command*.

I'd probably put that much data in a file, myself,
but R doesn't mind.
On Thu, 14 Jul 2022 at 01:21, Ebert,Timothy Aaron <tebert at ufl.edu> wrote:

            

  
  
Message-ID: <CABcYAdKRhzPSBxa+DgBuYVT78JQFcK3Tm68+tPLcKFZPrfCkwg@mail.gmail.com>
In-Reply-To: <BN6PR2201MB155355656C6FD9DC0BD729C1CF899@BN6PR2201MB1553.namprd22.prod.outlook.com>