Trying to create a string of length 5k in Console results in a next line prompt ("+") wherein another closing " needs to be added even though one was already entered. The resultant string has length 4087.
Is 4087 the maximum length that can be taken as input from Console? Is this documented somewhere? This is well below the default maximum length of string values (i.e., 65535).
foo <- "swY4Dura4GSPHlLTgJgvNDkRmCtMd8J3u6tvCkwpltCX4RtTkxwg0GpftrdgI1YAnF6ykAr3gkNsq9oawBOeh7VYVZnAIYILFa0eT8dY1zxv88SWM3cOfQ6jXZtWqybqZu1xelmRIIudOUkIIzALyE9oen3JFCuvLB4UFkqRDfukVRIo2wuR0fEPN6GmyAzfMiPKCRTpuRDZGxWz82rTqbXwHmL7Z3qOgqbhjXU2rYDqceze80WgNWvOK3nyixWUPebmdX8k27lynityv3eQtFRo9gjegECsvPZRBg3QerwqMZw5etBFYuxR5onCG6ES6QkVW5joqM5yEMgwTIcNyiPFp6UMArmIe5YDsrTnCH1Pw0WJigbOClVZPut4sYRybWblyXefPGRo9k1yZwJLXKwRbquVQrHOVKuxCMTJv9LPu4ftv9vrDd6RsDUYEAcQerZjNDu3PyBCu9gnmThSMQo47odNMTVLi8Zz9jRWHQdTav9lgWTkMOty7878sxLeDRC8RBUjvi8fSgCXnV2pX2J2BeohDIYXTjzn4HzaA5JZUIefcwxdvqylnVbYs94YrAgQ7e0KNpJuCVzvnrzBZvAML2N28Wf2lEvAgH4KDjOoTelyQyJZfT9NA6Fqv6iS4sVs6PGXGVuBxoXZtLbmQ07stvksYCJKu8SP59fFHSBoCOS5sBgqsM0Q4OX6Eu5Vf9yOAi1V0I6oBgjNSzWAJYuipIuRSCvz538kAx0ULIp3zlqti8X1iErwx4ciXmcpUB3zYXfnypUAbWyTwJnUsV22TUDAtIrCJ6Lz9xbhnQem6MfPg44gb4ByQm9jJJXC0YvL4nlX69vFRCuiOqq5uNzJO8nulu8a6b9oHPqaZydk5TTocpCrdgvlATa7hzJOl0TahqVAwaRupvcgVjpEaWbbY51EiuEUruHMYcjyF6tNPigR1KayrsxKJFTYqzfZm4CnnhrN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