title: how to print data to the console and read it back in?
body: <p>I have some data that I printed out to the console:</p>
  
  <pre><code>&gt; head(mydata)
  
  V1                  V2        V3
  1 29228 2005-01-01 00:00:00 12345
  2 29228 2005-01-01 00:10:00 23456
  3 29228 2005-01-01 00:20:00 34567
  4 29228 2005-01-01 00:30:00 45678
  </code></pre>
  
  <p>I want to share this data with a colleague.  It would be great if I could have the data in an r script with my code rather than having to share a separate data file.</p>
  
  <p>Is it possible to read this data in to R from a string, e.g.</p>
  
  <pre><code>&gt; df &lt;- read("
     V1                  V2        V3
     1 29228 2005-01-01 00:00:00 12345
     2 29228 2005-01-01 00:10:00 23456
     3 29228 2005-01-01 00:20:00 34567
     4 29228 2005-01-01 00:30:00 45678
  ")
  </code></pre>