Hi,
This is on Windows10 via the R gui . I, admittedly inadvisably, tried to create a new character object by first copying a 1-million character string (including lead and trail "'" chars) to the clipboard and then, in the console,

>> foo <-
and hitting "paste"

What I found is that, around 5000 characters, a newline ( "\n") char showed up. Is this something that the Windows Clipboard does, or something odd about pasting into a command in R?

Postscript:  using

>>  bar <- readChar('thefile.txt',1e6)

the import works perfectly.


--
Carl Witthoft
personal: c...@witthoft.com
The Witthoft Group, Consulting
https://witthoftgroup.weebly.com/

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to