If character vector is too long, it does not work in interactive mode unless it is

Thanks a lot, it seems to be related to this: Does Console impose an upper limit on the length of strings