Message-ID: <778a0fb5-08a8-7611-1bb4-ad9dace55bca@witthoft.com>
Date: 2022-03-04T16:45:39Z
From: Carl Witthoft
Subject: copying huge strings via clipboard?
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: carl at witthoft.com
The Witthoft Group, Consulting
https://witthoftgroup.weebly.com/